src/protocols/msn/notification.c

changeset 5364
d423753cfd63
parent 5363
b6e28be0c9bd
child 5372
6fa63c80ea61
--- 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);
 				}

mercurial