[gaim-migrate @ 12906]

Sat, 25 Jun 2005 18:18:24 +0000

author
Stu Tomlinson <nosnilmot@pidgin.im>
date
Sat, 25 Jun 2005 18:18:24 +0000
changeset 11028
b3568dd036a9
parent 11027
4d9a6e854cec
child 11029
e44f696408da

[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.

src/protocols/msn/msn.c file | annotate | diff | comparison | revisions
--- 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;
 	}

mercurial