Mercurial > pidgin.yaz
comparison src/protocols/zephyr/zephyr.c @ 8641:f6203301aa19
[gaim-migrate @ 9393]
fix for bug 932991
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Mon, 12 Apr 2004 18:07:42 +0000 |
parents | 5af95c2b1179 |
children | bdc92fcf1277 |
comparison
equal
deleted
inserted
replaced
8640:818abe01efc6 | 8641:f6203301aa19 |
---|---|
1026 } | 1026 } |
1027 } | 1027 } |
1028 | 1028 |
1029 static void zephyr_remove_buddy(GaimConnection *gc, const char *buddy, const char *group) { | 1029 static void zephyr_remove_buddy(GaimConnection *gc, const char *buddy, const char *group) { |
1030 GaimBuddy *b; | 1030 GaimBuddy *b; |
1031 fprintf(stderr,"In zephyr_remove_buddy\n"); | 1031 fprintf(stderr,"In zephyr_remove_buddy %s %s\n",buddy,group); |
1032 if ((b=gaim_find_buddy(zgc->account,buddy))) | 1032 if (!(b=gaim_find_buddy(zgc->account,buddy))) { |
1033 gaim_blist_remove_buddy(b); | |
1034 else | |
1035 fprintf(stderr,"attempt to remove non-existent buddy %s\n",buddy); | 1033 fprintf(stderr,"attempt to remove non-existent buddy %s\n",buddy); |
1034 /* gaim_blist_remove_buddy(b); */ | |
1035 } | |
1036 } | 1036 } |
1037 | 1037 |
1038 static void zephyr_remove_buddies(GaimConnection *gc, GList *buddies, const char *group) { | 1038 static void zephyr_remove_buddies(GaimConnection *gc, GList *buddies, const char *group) { |
1039 GaimBuddy *b; | 1039 GaimBuddy *b; |
1040 while(buddies) { | 1040 while(buddies) { |
1041 if ((b=gaim_find_buddy(zgc->account,buddies->data))) { | 1041 if ((b=gaim_find_buddy(zgc->account,buddies->data))) { |
1042 gaim_blist_remove_buddy(b); | |
1043 } else { | |
1044 fprintf(stderr,"attempt to remove non-existent buddy %s\n",(char *)buddies->data); | 1042 fprintf(stderr,"attempt to remove non-existent buddy %s\n",(char *)buddies->data); |
1045 } | 1043 /* gaim_blist_remove_buddy(b); */ |
1044 } | |
1046 } | 1045 } |
1047 } | 1046 } |
1048 | 1047 |
1049 static int zephyr_chat_send(GaimConnection *gc, int id, const char *im) | 1048 static int zephyr_chat_send(GaimConnection *gc, int id, const char *im) |
1050 { | 1049 { |