diff libpurple/protocols/gg/gg.c @ 18923:708a8b97ba87

Gadu-Gadu now calls the registration_cb for the account if it is set after performing a registration
author Evan Schoenberg <evan.s@dreskin.net>
date Fri, 17 Aug 2007 01:54:06 +0000
parents ac7b380daa0a
children 481749fc0b6b
line wrap: on
line diff
--- a/libpurple/protocols/gg/gg.c	Wed Aug 08 21:01:42 2007 +0000
+++ b/libpurple/protocols/gg/gg.c	Fri Aug 17 01:54:06 2007 +0000
@@ -411,6 +411,8 @@
 	purple_notify_info(NULL, _("New Gadu-Gadu Account Registered"),
 			 _("Registration completed successfully!"), NULL);
 
+	if(account->registration_cb)
+		(account->registration_cb)(account, TRUE, account->registration_cb_user_data);
 	/* TODO: the currently open Accounts Window will not be updated withthe
 	 * new username and etc, we need to somehow have it refresh at this
 	 * point
@@ -420,6 +422,9 @@
 	purple_connection_destroy(gc);
 
 exit_err:
+	if(account->registration_cb)
+		(account->registration_cb)(account, FALSE, account->registration_cb_user_data);
+
 	gg_register_free(h);
 	g_free(email);
 	g_free(p1);