Handle people forgetting to enter a domain. Also, change 'server,' in the account options to 'domain,' which is its proper name, and hopefully less confusion

Wed, 09 May 2007 00:02:17 +0000

author
Sean Egan <seanegan@pidgin.im>
date
Wed, 09 May 2007 00:02:17 +0000
changeset 17008
502623177086
parent 17007
66c0fa6e5e2a
child 17009
2cc9edf33feb

Handle people forgetting to enter a domain. Also, change 'server,' in the account options to 'domain,' which is its proper name, and hopefully less confusion

libpurple/protocols/jabber/jabber.c file | annotate | diff | comparison | revisions
libpurple/protocols/jabber/libxmpp.c file | annotate | diff | comparison | revisions
--- a/libpurple/protocols/jabber/jabber.c	Tue May 08 22:08:46 2007 +0000
+++ b/libpurple/protocols/jabber/jabber.c	Wed May 09 00:02:17 2007 +0000
@@ -564,7 +564,12 @@
 		purple_connection_error(gc, _("Invalid XMPP ID"));
 		return;
 	}
-
+	
+	if (!js->user->domain || *(js->user->domain) == '\0') {
+		purple_connection_error(gc, _("Invalid XMPP ID. Domain must be set."));
+		return;
+	}
+	
 	if(!js->user->resource) {
 		char *me;
 		js->user->resource = g_strdup("Home");
--- a/libpurple/protocols/jabber/libxmpp.c	Tue May 08 22:08:46 2007 +0000
+++ b/libpurple/protocols/jabber/libxmpp.c	Wed May 09 00:02:17 2007 +0000
@@ -191,7 +191,8 @@
         PurpleAccountUserSplit *split;
         PurpleAccountOption *option;
 
-        split = purple_account_user_split_new(_("Server"), NULL, '@');
+	/* Translators: 'domain' is used here in the context of Internet domains, e.g. pidgin.im */
+        split = purple_account_user_split_new(_("Domain"), NULL, '@');
         prpl_info.user_splits = g_list_append(prpl_info.user_splits, split);
 
         split = purple_account_user_split_new(_("Resource"), "Home", '/');

mercurial