aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_privacy.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-01-29 02:41:36 +0000
committerMatthew Wild <mwild1@gmail.com>2010-01-29 02:41:36 +0000
commit23725006905c94572d6b54c12ba28507f75070be (patch)
tree8419cb74cd81c1ce18ea61368c7e9064874933b9 /plugins/mod_privacy.lua
parent2c82900afc884407f6c2136c5547a2f7bd926a5a (diff)
downloadprosody-23725006905c94572d6b54c12ba28507f75070be.tar.gz
prosody-23725006905c94572d6b54c12ba28507f75070be.zip
mod_privacy: Mmph, no 'from' == from local
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 006a13d4..66ac9f02 100644
--- a/plugins/mod_privacy.lua
+++ b/plugins/mod_privacy.lua
@@ -415,7 +415,7 @@ function checkIfNeedToBeBlocked(e, session)
(stanza.name == "message" and item.message) or
(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
+ (stanza.name == "presence" and not stanza.attr.from or 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-out"] == false)
) then
apply = true;