# HG changeset patch # User Evan Schoenberg # Date 1187315646 0 # Node ID 708a8b97ba8796ad2b7ee906778fb50f4efa4864 # Parent 5d0141588299fa51632672b4a2ee398d3842e70a Gadu-Gadu now calls the registration_cb for the account if it is set after performing a registration diff -r 5d0141588299 -r 708a8b97ba87 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);