diff libpurple/protocols/jabber/jabber.c @ 30145:bd0ce3844104

merged with im.pidgin.pidgin
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Thu, 15 Apr 2010 16:48:50 +0900
parents f988f25259c7 08957bb38e30
children 06fa97f637a7
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jabber.c	Fri Apr 09 14:56:00 2010 +0900
+++ b/libpurple/protocols/jabber/jabber.c	Thu Apr 15 16:48:50 2010 +0900
@@ -846,6 +846,14 @@
 		return NULL;
 	}
 
+	if (!js->user->node || *(js->user->node) == '\0') {
+		purple_connection_error_reason(gc,
+			PURPLE_CONNECTION_ERROR_INVALID_SETTINGS,
+			_("Invalid XMPP ID. Username portion must be set."));
+		/* Destroying the connection will free the JabberStream */
+		return NULL;
+	}
+
 	if (!js->user->domain || *(js->user->domain) == '\0') {
 		purple_connection_error_reason(gc,
 			PURPLE_CONNECTION_ERROR_INVALID_SETTINGS,