diff libpurple/protocols/jabber/google.c @ 15467:2c81b0a81790

Make deleting Google Talk buddies work
author Sean Egan <seanegan@gmail.com>
date Tue, 30 Jan 2007 21:04:04 +0000
parents 5fe8042783c1
children ccbdf500f13a
line wrap: on
line diff
--- a/libpurple/protocols/jabber/google.c	Tue Jan 30 17:29:00 2007 +0000
+++ b/libpurple/protocols/jabber/google.c	Tue Jan 30 21:04:04 2007 +0000
@@ -206,7 +206,7 @@
 
 }
 
-void jabber_google_roster_incoming(JabberStream *js, xmlnode *item)
+gboolean jabber_google_roster_incoming(JabberStream *js, xmlnode *item)
 {
 	GaimAccount *account = gaim_connection_get_account(js->gc);
 	GSList *list = account->deny;
@@ -225,6 +225,12 @@
 		list = list->next;
 	}
 	
+	if (grt && (*grt == 'H' || *grt == 'h')) {
+		GaimBuddy *buddy = gaim_find_buddy(account, jid_norm);
+		gaim_blist_remove_buddy(buddy);
+		return FALSE;
+	}
+	
 	if (!on_block_list && (grt && (*grt == 'B' || *grt == 'b'))) {
 		gaim_debug_info("jabber", "Blocking %s\n", jid_norm);
 		gaim_privacy_deny_add(account, jid_norm, TRUE);
@@ -232,6 +238,7 @@
 		gaim_debug_info("jabber", "Unblocking %s\n", jid_norm);
 		gaim_privacy_deny_remove(account, jid_norm, TRUE);
 	}
+	return TRUE;
 }
 
 void jabber_google_roster_add_deny(GaimConnection *gc, const char *who)