From 2c82900afc884407f6c2136c5547a2f7bd926a5a Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 29 Jan 2010 02:24:36 +0000 Subject: 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/mod_privacy.lua b/plugins/mod_privacy.lua index 7f1bc438..006a13d4 100644 --- a/plugins/mod_privacy.lua +++ b/plugins/mod_privacy.lua @@ -416,7 +416,7 @@ function checkIfNeedToBeBlocked(e, session) (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 -- cgit v1.2.3