aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-01-29 03:07:08 +0000
committerMatthew Wild <mwild1@gmail.com>2010-01-29 03:07:08 +0000
commitee7f33faec6f9785b8ed913efd2fb611158c517e (patch)
tree85a5ae76f0fa5a745a7826506fd5cfa59c42088d /plugins
parent23725006905c94572d6b54c12ba28507f75070be (diff)
downloadprosody-ee7f33faec6f9785b8ed913efd2fb611158c517e.tar.gz
prosody-ee7f33faec6f9785b8ed913efd2fb611158c517e.zip
Backed out changeset c4240df1b412 (or this)
Diffstat (limited to 'plugins')
-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 66ac9f02..006a13d4 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 not stanza.attr.from or jid_bare(stanza.attr.from) == bare_jid and item["presence-out"]) 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-out"] == false)
) then
apply = true;