pidgin: bc957eab: Fix a status change event being triggere...
datallah at pidgin.im
datallah at pidgin.im
Thu May 13 18:10:35 EDT 2010
-----------------------------------------------------------------
Revision: bc957eab7e687eb8908baa840c77adf8997dc71f
Ancestor: 7a7658e25ae8a63cd0217ec708ea03aa1fa88337
Author: datallah at pidgin.im
Date: 2010-05-13T22:05:59
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/bc957eab7e687eb8908baa840c77adf8997dc71f
Modified files:
COPYRIGHT libpurple/protocols/bonjour/bonjour.c
ChangeLog:
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
-------------- next part --------------
============================================================
--- COPYRIGHT 6cea23075bd95c5c6e4adb21810ea8ba5d10a650
+++ COPYRIGHT 0b0367f08a4e10c1e33c5960a881f86045bccdb8
@@ -118,6 +118,7 @@ Steven Danna
Jeramey Crawford
Michael Culbertson
Steven Danna
+Simon Danner
Chris Davies
Josh Davis
Martijn Dekker
============================================================
--- libpurple/protocols/bonjour/bonjour.c 5ac67fd0631d3e1cf3950e1c36b1d88aa5eb84b7
+++ libpurple/protocols/bonjour/bonjour.c 1ea095389d3b9bfac2c562a98b852f9a1da50cea
@@ -70,7 +70,6 @@ bonjour_removeallfromlocal(PurpleConnect
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 @@ bonjour_close(PurpleConnection *connecti
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);
More information about the Commits
mailing list