comparison src/protocols/yahoo/yahoo.c @ 6792:62aec9fd7aca

[gaim-migrate @ 7331] Jesse Farmer (vann) writes: " Oops! gaim_privacy_deny_add only adds someone to the server list if they're not already in the local deny list, but this is exactly the situation with Yahoo! when you add someone to the deny list who is also on your buddy list. The call to gaim_privacy_deny_add was changed to serv_add_deny, and also some formatting issues were cleared up (tabs instead of spaces). The diff is against the "latest" CVS sources in that I applied all the available patches." committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Mon, 08 Sep 2003 10:07:14 +0000
parents 9927df765fae
children 3d84c933b939
comparison
equal deleted inserted replaced
6791:9927df765fae 6792:62aec9fd7aca
912 GaimGroup *g; 912 GaimGroup *g;
913 GaimConversation *c; 913 GaimConversation *c;
914 GaimAccount *account; 914 GaimAccount *account;
915 gchar *name; 915 gchar *name;
916 916
917 if (!b) 917 if (!b)
918 return; 918 return;
919 919
920 g = gaim_find_buddys_group(b); 920 g = gaim_find_buddys_group(b);
921 name = g_strdup(b->name); 921 name = g_strdup(b->name);
922 account = b->account; 922 account = b->account;
923 923
924 gaim_debug(GAIM_DEBUG_INFO, "blist", 924 gaim_debug(GAIM_DEBUG_INFO, "blist",
925 "Removing '%s' from buddy list.\n", b->name); 925 "Removing '%s' from buddy list.\n", b->name);
926 serv_remove_buddy(account->gc, name, g->name); 926 serv_remove_buddy(account->gc, name, g->name);
927 gaim_blist_remove_buddy(b); 927 gaim_blist_remove_buddy(b);
928 928
929 gaim_privacy_deny_add(account, name, 0); 929 serv_add_deny(account->gc, name);
930 930 gaim_blist_save();
931 gaim_blist_save(); 931
932 932 c = gaim_find_conversation_with_account(name, account);
933 c = gaim_find_conversation_with_account(name, account); 933
934 934 if (c != NULL)
935 if (c != NULL) 935 gaim_conversation_update(c, GAIM_CONV_UPDATE_REMOVE);
936 gaim_conversation_update(c, GAIM_CONV_UPDATE_REMOVE);
937 936
938 g_free(name); 937 g_free(name);
939 } 938 }
940 939
941 static void keep_buddy(GaimBuddy *b) { 940 static void keep_buddy(GaimBuddy *b) {