comparison 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
comparison
equal deleted inserted replaced
18922:5d0141588299 18923:708a8b97ba87
409 purple_account_set_password(account, p1); 409 purple_account_set_password(account, p1);
410 410
411 purple_notify_info(NULL, _("New Gadu-Gadu Account Registered"), 411 purple_notify_info(NULL, _("New Gadu-Gadu Account Registered"),
412 _("Registration completed successfully!"), NULL); 412 _("Registration completed successfully!"), NULL);
413 413
414 if(account->registration_cb)
415 (account->registration_cb)(account, TRUE, account->registration_cb_user_data);
414 /* TODO: the currently open Accounts Window will not be updated withthe 416 /* TODO: the currently open Accounts Window will not be updated withthe
415 * new username and etc, we need to somehow have it refresh at this 417 * new username and etc, we need to somehow have it refresh at this
416 * point 418 * point
417 */ 419 */
418 420
419 /* Need to disconnect or actually log in. For now, we disconnect. */ 421 /* Need to disconnect or actually log in. For now, we disconnect. */
420 purple_connection_destroy(gc); 422 purple_connection_destroy(gc);
421 423
422 exit_err: 424 exit_err:
425 if(account->registration_cb)
426 (account->registration_cb)(account, FALSE, account->registration_cb_user_data);
427
423 gg_register_free(h); 428 gg_register_free(h);
424 g_free(email); 429 g_free(email);
425 g_free(p1); 430 g_free(p1);
426 g_free(p2); 431 g_free(p2);
427 g_free(t); 432 g_free(t);