# HG changeset patch
# User Daniel Atallah <daniel.atallah@gmail.com>
# Date 1273788359 0
# Node ID cd857e9b728100aab811d62682f35383ef68862b
# Parent  55913ed2a229ea0f3237ea0c250fb8a8f0b75288
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

diff -r 55913ed2a229 -r cd857e9b7281 COPYRIGHT
--- 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
diff -r 55913ed2a229 -r cd857e9b7281 libpurple/protocols/bonjour/bonjour.c
--- 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);