# HG changeset patch # User Evan Schoenberg # Date 1187315646 0 # Node ID 072dcd2ed1b3f0382fd599024826c9e9c2f50cea # Parent 9c15c80fec2ac3a04a5ecf354716b080d9ed32d6 Gadu-Gadu now calls the registration_cb for the account if it is set after performing a registration diff -r 9c15c80fec2a -r 072dcd2ed1b3 libpurple/protocols/gg/gg.c --- 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);