diff libpurple/protocols/msn/notification.c @ 31007:388ca4797d7b

Replace the mpop account setting with a session boolean, because I can't get a good signal for when the user changes an account setting.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sun, 05 Dec 2010 08:13:13 +0000
parents 1546ad4f93b3
children 007ae2d62ea4
line wrap: on
line diff
--- a/libpurple/protocols/msn/notification.c	Sun Dec 05 03:09:52 2010 +0000
+++ b/libpurple/protocols/msn/notification.c	Sun Dec 05 08:13:13 2010 +0000
@@ -1572,7 +1572,7 @@
 
 		/* Disconnect others, if MPOP is disabled */
 		if (is_me
-		 && !purple_account_get_bool(session->account, "mpop", TRUE)
+		 && !session->enable_mpop
 		 && strncasecmp(id + 1, session->guid, 36) != 0) {
 			purple_debug_info("msn", "Disconnecting Endpoint %s\n", id);
 
@@ -1599,7 +1599,7 @@
 		}
 	}
 
-	if (is_me && purple_account_get_bool(session->account, "mpop", TRUE)) {
+	if (is_me && session->enable_mpop) {
 		for (epNode = xmlnode_get_child(payloadNode, "PrivateEndpointData");
 		     epNode;
 		     epNode = xmlnode_get_next_twin(epNode)) {