diff libpurple/protocols/jabber/jabber.c @ 16963:919515748253

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
author Sean Egan <seanegan@gmail.com>
date Wed, 09 May 2007 00:02:17 +0000
parents 88444e60ea95
children 37a2d6eadd34 48ef40b32eb7
line wrap: on
line diff
--- 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");