From: Bleeter Y. <bl...@us...> - 2005-07-26 06:32:27
|
Update of /cvsroot/gaim-vv/gaim/src/protocols/yahoo In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7948 Modified Files: yahoo.c Log Message: Privacy wrap webcam invites. Index: yahoo.c =================================================================== RCS file: /cvsroot/gaim-vv/gaim/src/protocols/yahoo/yahoo.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -p -r1.9 -r1.10 --- yahoo.c 24 Jul 2005 22:58:41 -0000 1.9 +++ yahoo.c 26 Jul 2005 06:32:18 -0000 1.10 @@ -875,13 +875,26 @@ static void yahoo_process_notify(GaimCon #ifdef HAVE_GST else if (!g_ascii_strncasecmp(msg, "WEBCAMINVITE", strlen("WEBCAMINVITE"))) { if (!strcmp(game, " ")) { - gaim_media_got_invite(gc, from); + if (yahoo_privacy_check(gc, from)) { + gaim_media_got_invite(gc, from); + } else { + gaim_debug_info("yahoo","Webcam invite from %s dropped", from); + } } else { accept = strtol(game, NULL, 10); - if (accept == 1) - gaim_media_got_invite_accept(gc, from); - else if (accept == -1) - gaim_media_got_invite_decline(gc, from); + if (accept == 1) { + if (yahoo_privacy_check(gc, from)) { + gaim_media_got_invite_accept(gc, from); + } else { + gaim_debug_info("yahoo","Webcam invite accept from %s dropped", from); + } + } else if (accept == -1) { + if (yahoo_privacy_check(gc, from)) { + gaim_media_got_invite_decline(gc, from); + } else { + gaim_debug_info("yahoo","Webcam decline from %s dropped", from); + } + } } } #endif |