[gaim-migrate @ 5672]

Mon, 05 May 2003 23:30:42 +0000

author
Mark Doliner <markdoliner@pidgin.im>
date
Mon, 05 May 2003 23:30:42 +0000
changeset 5300
3a728d511680
parent 5299
a32031c0f781
child 5301
38f02eecad54

[gaim-migrate @ 5672]
<malsyned> 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"
<faceprint> malsyned: what protocol?
<malsyned> Oscar
<faceprint> yes, that's a bug
<SeanEgan> probably a typing notification thing?

This fixes that.

And now I should get back to the how you say... ah yes, "studying."

src/protocols/oscar/oscar.c file | annotate | diff | comparison | revisions
--- 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;

mercurial