diff src/multi.c @ 4040:89b56ab2b692

[gaim-migrate @ 4248] faceprint got jabber registration working again :-) committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Tue, 03 Dec 2002 17:50:43 +0000
parents 94852b7cc81f
children 3ccbdf8e7f8d
line wrap: on
line diff
--- a/src/multi.c	Tue Dec 03 06:10:42 2002 +0000
+++ b/src/multi.c	Tue Dec 03 17:50:43 2002 +0000
@@ -397,8 +397,11 @@
 	} else {
 		if(p->register_user != NULL &&
 		   gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(u->register_user)) == TRUE) {
-
+			ref_protocol(p);
 			p->register_user(a);
+			/* we don't unref the protocol because register user has callbacks
+			 * that need to get called first, then they will unref the protocol
+			 * appropriately */
 		}
 	}