diff src/protocols/msn/notification.c @ 5364:379beab3d157

[gaim-migrate @ 5740] If you have MSN Mobile support, you can now enable or disable it from the Protocol Actions menu. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Tue, 13 May 2003 08:36:36 +0000
parents ebebc833cf77
children fa0217bec87e
line wrap: on
line diff
--- a/src/protocols/msn/notification.c	Tue May 13 08:03:27 2003 +0000
+++ b/src/protocols/msn/notification.c	Tue May 13 08:36:36 2003 +0000
@@ -446,11 +446,12 @@
 
 	if (value != NULL) {
 		if (!strcmp(type, "MOB")) {
-			if (!strcmp(value, "Y")) {
-				gaim_debug(GAIM_DEBUG_MISC, "msn",
-						   "%s has a pager\n", passport);
-				if ((b = gaim_find_buddy(gc->account, passport)) != NULL) {
-					status = b->uc | (1 << 5);
+			if ((b = gaim_find_buddy(gc->account, passport)) != NULL) {
+				if (GAIM_BUDDY_IS_ONLINE(b)) {
+					if (!strcmp(value, "Y"))
+						status = (b->uc | (1 << 5));
+					else if (!strcmp(value, "N"))
+						status = (b->uc ^ (1 << 5));
 
 					serv_got_update(gc, (char *)passport, 1, 0, 0, 0, status);
 				}