[gaim-migrate @ 9393]

Mon, 12 Apr 2004 18:07:42 +0000

author
Luke Schierer <lschiere@pidgin.im>
date
Mon, 12 Apr 2004 18:07:42 +0000
changeset 8641
38d461e73fe9
parent 8640
d5d2f8a68b83
child 8642
94b4d945a878

[gaim-migrate @ 9393]
fix for bug 932991

ChangeLog file | annotate | diff | comparison | revisions
src/protocols/zephyr/zephyr.c file | annotate | diff | comparison | revisions
--- a/ChangeLog	Mon Apr 12 13:14:02 2004 +0000
+++ b/ChangeLog	Mon Apr 12 18:07:42 2004 +0000
@@ -16,6 +16,7 @@
 	* The Clear button in privacy works (Robert Mibus)
 	* MSN error reporting works again (Stu Tomlinson)
 	* All away messages should now show up in tooltips
+	* Removing zepher budies no longer crashes (Arun A. Tharuvai)
 
 version 0.76 (04/01/2004):
 	New Features:
--- a/src/protocols/zephyr/zephyr.c	Mon Apr 12 13:14:02 2004 +0000
+++ b/src/protocols/zephyr/zephyr.c	Mon Apr 12 18:07:42 2004 +0000
@@ -1028,21 +1028,20 @@
 
 static void zephyr_remove_buddy(GaimConnection *gc, const char *buddy, const char *group) { 
         GaimBuddy *b;
-        fprintf(stderr,"In zephyr_remove_buddy\n");
-        if ((b=gaim_find_buddy(zgc->account,buddy)))
-                gaim_blist_remove_buddy(b);
-        else 
+        fprintf(stderr,"In zephyr_remove_buddy %s %s\n",buddy,group);
+        if (!(b=gaim_find_buddy(zgc->account,buddy))) {
                 fprintf(stderr,"attempt to remove non-existent buddy %s\n",buddy);
+            /*    gaim_blist_remove_buddy(b); */
+	}
 }
 
 static void zephyr_remove_buddies(GaimConnection *gc, GList *buddies, const char *group) {
         GaimBuddy *b;
         while(buddies) {
                 if ((b=gaim_find_buddy(zgc->account,buddies->data))) {
-                        gaim_blist_remove_buddy(b);
-                }  else {
                         fprintf(stderr,"attempt to remove non-existent buddy %s\n",(char *)buddies->data);
-                }
+                        /*  gaim_blist_remove_buddy(b); */
+                } 
         }      
 }
 

mercurial