libpurple/protocols/gg/gg.c

branch
soc.2007.xmpp
changeset 18997
072dcd2ed1b3
parent 18629
9e78088bfc46
child 19897
8b5abbdebc87
equal deleted inserted replaced
18996:9c15c80fec2a 18997:072dcd2ed1b3
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);

mercurial