libpurple/protocols/jabber/buddy.c

branch
cpw.darkrain42.2.6.1
changeset 28266
4f065db2b39e
parent 28058
52eb7bf6e375
parent 28071
a0706162fefd
child 28278
6539418cb140
--- a/libpurple/protocols/jabber/buddy.c	Sun Aug 02 22:24:21 2009 +0000
+++ b/libpurple/protocols/jabber/buddy.c	Mon Aug 03 00:46:28 2009 +0000
@@ -1786,9 +1786,7 @@
 	if(!jb)
 		return m;
 
-	/* XXX: fix the NOT ME below */
-
-	if(js->protocol_version == JABBER_PROTO_0_9 /* && NOT ME */) {
+	if (js->protocol_version == JABBER_PROTO_0_9 && jb != js->user_jb) {
 		if(jb->invisible & JABBER_INVIS_BUDDY) {
 			act = purple_menu_action_new(_("Un-hide From"),
 			                           PURPLE_CALLBACK(jabber_buddy_make_visible),
@@ -1801,7 +1799,7 @@
 		m = g_list_append(m, act);
 	}
 
-	if(jb->subscription & JABBER_SUB_FROM /* && NOT ME */) {
+	if(jb->subscription & JABBER_SUB_FROM && jb != js->user_jb) {
 		act = purple_menu_action_new(_("Cancel Presence Notification"),
 		                           PURPLE_CALLBACK(jabber_buddy_cancel_presence_notification),
 		                           NULL, NULL);
@@ -1814,7 +1812,7 @@
 		                           NULL, NULL);
 		m = g_list_append(m, act);
 
-	} else /* if(NOT ME) */{
+	} else if (jb != js->user_jb) {
 
 		/* shouldn't this just happen automatically when the buddy is
 		   removed? */

mercurial