Mercurial > pidgin.yaz
comparison src/protocols/msn/msn.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 | c9b815aeddc1 |
children | fa742ad8068c |
comparison
equal
deleted
inserted
replaced
11717:84d1145522c2 | 11718:11e95968c9ff |
---|---|
884 | 884 |
885 state = gaim_status_get_id(status); | 885 state = gaim_status_get_id(status); |
886 | 886 |
887 gaim_debug_info("msn", "Set status to %s\n", gaim_status_get_name(status)); | 887 gaim_debug_info("msn", "Set status to %s\n", gaim_status_get_name(status)); |
888 | 888 |
889 if (!strcmp(state, "offline") && (gc != NULL)) { | 889 if (!strcmp(state, "away")) |
890 gaim_account_disconnect(account); | |
891 return; | |
892 } | |
893 else if (strcmp(state, "offline") && (gc == NULL)) { | |
894 gaim_account_connect(account); | |
895 return; | |
896 } | |
897 else if (!strcmp(state, "away")) | |
898 msnstatus = MSN_AWAY; | 890 msnstatus = MSN_AWAY; |
899 else if (!strcmp(state, "brb")) | 891 else if (!strcmp(state, "brb")) |
900 msnstatus = MSN_BRB; | 892 msnstatus = MSN_BRB; |
901 else if (!strcmp(state, "busy")) | 893 else if (!strcmp(state, "busy")) |
902 msnstatus = MSN_BUSY; | 894 msnstatus = MSN_BUSY; |