# HG changeset patch # User Stu Tomlinson # Date 1119723504 0 # Node ID 5ee8a313f8e72cfaf16957deda78621e4a8cb3bb # Parent c539215988966f022b1784f56b2bcada1f4ff32c [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 diff -r c53921598896 -r 5ee8a313f8e7 src/protocols/msn/msn.c --- 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; }