Mercurial > pidgin.yaz
diff src/account.c @ 6581:0473a28ce807
[gaim-migrate @ 7103]
this should fix jabber registrations yet again
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Sat, 23 Aug 2003 05:40:51 +0000 |
parents | 800ef4a51096 |
children | 42fdf16f1dad |
line wrap: on
line diff
--- a/src/account.c Sat Aug 23 05:39:10 2003 +0000 +++ b/src/account.c Sat Aug 23 05:40:51 2003 +0000 @@ -172,6 +172,26 @@ } GaimConnection * +gaim_account_register(GaimAccount *account) +{ + GaimConnection *gc; + + g_return_val_if_fail(account != NULL, NULL); + + if (gaim_account_get_connection(account) != NULL) + return NULL; + + gc = gaim_connection_new(account); + + gaim_debug(GAIM_DEBUG_INFO, "account", + "Registering account %p. gc = %p\n", account, gc); + + gaim_connection_register(gc); + + return gc; +} + +GaimConnection * gaim_account_connect(GaimAccount *account) { GaimConnection *gc;