aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_privacy.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-01-29 02:24:36 +0000
committerMatthew Wild <mwild1@gmail.com>2010-01-29 02:24:36 +0000
commit2c82900afc884407f6c2136c5547a2f7bd926a5a (patch)
tree85a5ae76f0fa5a745a7826506fd5cfa59c42088d /plugins/mod_privacy.lua
parent5599c0b0e8392e20d8daa9d3478072eced5e604c (diff)
downloadprosody-2c82900afc884407f6c2136c5547a2f7bd926a5a.tar.gz
prosody-2c82900afc884407f6c2136c5547a2f7bd926a5a.zip
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)
Diffstat (limited to 'plugins/mod_privacy.lua')
-rw-r--r--plugins/mod_privacy.lua2
1 files changed, 1 insertions, 1 deletions
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