changeset 30358:cd857e9b7281

Fix a status change event being triggered for each online Bonjour buddy when you sign out. Simon Danner noticed this and provided a patch to fix it. Fixes #11697
author Daniel Atallah <daniel.atallah@gmail.com>
date Thu, 13 May 2010 22:05:59 +0000
parents 55913ed2a229
children 129f973c38b5
files COPYRIGHT libpurple/protocols/bonjour/bonjour.c
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/COPYRIGHT	Thu May 13 21:01:34 2010 +0000
+++ b/COPYRIGHT	Thu May 13 22:05:59 2010 +0000
@@ -118,6 +118,7 @@
 Jeramey Crawford
 Michael Culbertson
 Steven Danna
+Simon Danner
 Chris Davies
 Josh Davis
 Martijn Dekker
--- a/libpurple/protocols/bonjour/bonjour.c	Thu May 13 21:01:34 2010 +0000
+++ b/libpurple/protocols/bonjour/bonjour.c	Thu May 13 22:05:59 2010 +0000
@@ -70,7 +70,6 @@
 			buddy = (PurpleBuddy *) bnode;
 			if (purple_buddy_get_account(buddy) != account)
 				continue;
-			purple_prpl_got_user_status(account, purple_buddy_get_name(buddy), "offline", NULL);
 			purple_account_remove_buddy(account, buddy, NULL);
 			purple_blist_remove_buddy(buddy);
 		}
@@ -172,7 +171,9 @@
 		g_free(bd->jabber_data);
 	}
 
-	/* Delete the bonjour group */
+	/* Delete the bonjour group
+	 * (purple_blist_remove_group will bail out if the group isn't empty)
+	 */
 	if (bonjour_group != NULL)
 		purple_blist_remove_group(bonjour_group);