Mercurial > pidgin
changeset 11028:5ee8a313f8e7
[gaim-migrate @ 12906]
Apparently not being able to disconnect MSN by unchecking "enabled" in
the accounts window is a *High* priority bug (garybugsxmlnumber27).
Now it's a zero priority bug, because this fixes it.
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sat, 25 Jun 2005 18:18:24 +0000 |
parents | c53921598896 |
children | 7af7d234e1e0 |
files | src/protocols/msn/msn.c |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/msn/msn.c Sat Jun 25 17:58:42 2005 +0000 +++ b/src/protocols/msn/msn.c Sat Jun 25 18:18:24 2005 +0000 @@ -827,14 +827,18 @@ gc = gaim_account_get_connection(account); - if (gc) + if (gc != NULL) session = gc->proto_data; state = gaim_status_get_id(status); gaim_debug_info("msn", "Set status to %s\n", gaim_status_get_name(status)); - if (strcmp(state, "offline") && !gc) { + if (!strcmp(state, "offline") && (gc != NULL)) { + gaim_account_disconnect(account); + return; + } + else if (strcmp(state, "offline") && (gc == NULL)) { gaim_account_connect(account); return; }