Mercurial > pidgin.yaz
comparison src/protocols/sametime/sametime.c @ 11718:11e95968c9ff
[gaim-migrate @ 14009]
PRPLs are no longer required to call gaim_account_connect() and
gaim_account_disconnect()--it is done in the core. Having the PRPLs
do it was kind of silly. And this should allow me to improve the
auto-reconnect plugin some. I think.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 22 Oct 2005 20:09:24 +0000 |
parents | 925c1960af34 |
children | fa742ad8068c |
comparison
equal
deleted
inserted
replaced
11717:84d1145522c2 | 11718:11e95968c9ff |
---|---|
3489 gc = gaim_account_get_connection(acct); | 3489 gc = gaim_account_get_connection(acct); |
3490 | 3490 |
3491 state = gaim_status_get_id(status); | 3491 state = gaim_status_get_id(status); |
3492 | 3492 |
3493 gaim_debug_info("meanwhile", "Set status to %s\n", gaim_status_get_name(status)); | 3493 gaim_debug_info("meanwhile", "Set status to %s\n", gaim_status_get_name(status)); |
3494 | |
3495 if (!strcmp(state, "offline") && (gc != NULL)) { | |
3496 gaim_account_disconnect(acct); | |
3497 return; | |
3498 } | |
3499 else if (strcmp(state, "offline") && (gc == NULL)) { | |
3500 gaim_account_connect(acct); | |
3501 return; | |
3502 } | |
3503 | 3494 |
3504 g_return_if_fail(gc != NULL); | 3495 g_return_if_fail(gc != NULL); |
3505 | 3496 |
3506 session = gc_to_session(gc); | 3497 session = gc_to_session(gc); |
3507 g_return_if_fail(session != NULL); | 3498 g_return_if_fail(session != NULL); |