mod_privacy: Fix repeated presence-in (should be presence-out) - this stops the blocking of legitimate inbound presence, and inbound/outbound iqs and messages in Gajim's invisible mode (maybe I can sleep now)

Fri, 29 Jan 2010 02:24:36 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Fri, 29 Jan 2010 02:24:36 +0000
changeset 2517
d0c43c4dcb3f
parent 2516
68a889016a46
child 2518
c4240df1b412

mod_privacy: Fix repeated presence-in (should be presence-out) - this stops the blocking of legitimate inbound presence, and inbound/outbound iqs and messages in Gajim's invisible mode (maybe I can sleep now)

plugins/mod_privacy.lua file | annotate | diff | comparison | revisions
--- a/plugins/mod_privacy.lua	Fri Jan 29 02:16:43 2010 +0000
+++ b/plugins/mod_privacy.lua	Fri Jan 29 02:24:36 2010 +0000
@@ -416,7 +416,7 @@
 				(stanza.name == "iq" and item.iq) or
 				(stanza.name == "presence" and jid_bare(stanza.attr.to) == bare_jid and item["presence-in"]) or
 				(stanza.name == "presence" and jid_bare(stanza.attr.from) == bare_jid and item["presence-out"]) or
-				(item.message == false and item.iq == false and item["presence-in"] == false and item["presence-in"] == false)
+				(item.message == false and item.iq == false and item["presence-in"] == false and item["presence-out"] == false)
 			) then
 				apply = true;
 			end

mercurial