diff src/protocols/jabber/jabber.c @ 7310:dd4b4a187171

[gaim-migrate @ 7894] assorted jabber tweaks committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Tue, 21 Oct 2003 17:18:46 +0000
parents 632cee95cc5c
children ab828b8c3f22
line wrap: on
line diff
--- a/src/protocols/jabber/jabber.c	Tue Oct 21 16:34:12 2003 +0000
+++ b/src/protocols/jabber/jabber.c	Tue Oct 21 17:18:46 2003 +0000
@@ -362,6 +362,11 @@
 			g_free, NULL);
 	js->user = jabber_id_new(gaim_account_get_username(account));
 
+	if(!js->user) {
+		gaim_connection_error(gc, _("Invalid Jabber ID"));
+		return;
+	}
+
 	if(!js->user->resource) {
 		char *me;
 		js->user->resource = g_strdup("Gaim");
@@ -650,6 +655,11 @@
 			g_free, NULL);
 	js->user = jabber_id_new(gaim_account_get_username(account));
 
+	if(!js->user) {
+		gaim_connection_error(gc, _("Invalid Jabber ID"));
+		return;
+	}
+
 	if(!js->user->resource) {
 		char *me;
 		js->user->resource = g_strdup("Gaim");