changeset 15957:84bf0f949b0b

fix prompting to add a buddy after authorization if they're already on our list
author Nathan Walp <nwalp@pidgin.im>
date Wed, 28 Mar 2007 02:32:03 +0000
parents 5d9e85f2eba4
children c44bb13db468
files libpurple/protocols/jabber/presence.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/presence.c	Wed Mar 28 01:03:14 2007 +0000
+++ b/libpurple/protocols/jabber/presence.c	Wed Mar 28 02:32:03 2007 +0000
@@ -288,16 +288,16 @@
 
 		if (buddy) {
 			jb = jabber_buddy_find(js, from, TRUE);
-			if ((jb->subscription & JABBER_SUB_TO) == 0)
+			if ((jb->subscription & JABBER_SUB_TO))
 				onlist = TRUE;
 		}
-		
+
 		jap->gc = js->gc;
 		jap->who = g_strdup(from);
 		jap->js = js;
 
 		purple_account_request_authorization(purple_connection_get_account(js->gc), from, NULL, NULL, NULL, onlist,
-					   	   G_CALLBACK(authorize_add_cb), G_CALLBACK(deny_add_cb), jap);
+				G_CALLBACK(authorize_add_cb), G_CALLBACK(deny_add_cb), jap);
 		jabber_id_free(jid);
 		return;
 	} else if(type && !strcmp(type, "subscribed")) {