# HG changeset patch # User Mark Doliner # Date 1052177442 0 # Node ID 5344eb60f421db922cd0f351b10f5b6dff96d4fd # Parent ee2b7e4de04e79f85f0b0144f01739df4accc41c [gaim-migrate @ 5672] Hey, is this a bug? when I block someone and then close their window, I'm told "Your message to (null) did not get sent: In local permit/deny" malsyned: what protocol? Oscar yes, that's a bug probably a typing notification thing? This fixes that. And now I should get back to the how you say... ah yes, "studying." committer: Tailor Script diff -r ee2b7e4de04e -r 5344eb60f421 src/protocols/oscar/oscar.c --- a/src/protocols/oscar/oscar.c Mon May 05 20:58:37 2003 +0000 +++ b/src/protocols/oscar/oscar.c Mon May 05 23:30:42 2003 +0000 @@ -4165,14 +4165,19 @@ else aim_odc_send_typing(od->sess, dim->conn, 0x0000); else { - struct buddyinfo *bi = g_hash_table_lookup(od->buddyinfo, normalize(name)); - if (bi && bi->typingnot) { - if (typing == TYPING) - aim_im_sendmtn(od->sess, 0x0001, name, 0x0002); - else if (typing == TYPED) - aim_im_sendmtn(od->sess, 0x0001, name, 0x0001); - else - aim_im_sendmtn(od->sess, 0x0001, name, 0x0000); + /* Don't send if this turkey is in our deny list */ + GSList *list; + for (list=gc->account->deny; (list && aim_sncmp(name, list->data)); list=list->next); + if (!list) { + struct buddyinfo *bi = g_hash_table_lookup(od->buddyinfo, normalize(name)); + if (bi && bi->typingnot) { + if (typing == TYPING) + aim_im_sendmtn(od->sess, 0x0001, name, 0x0002); + else if (typing == TYPED) + aim_im_sendmtn(od->sess, 0x0001, name, 0x0001); + else + aim_im_sendmtn(od->sess, 0x0001, name, 0x0000); + } } } return 0;