aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-01-29 03:06:37 +0000
committerMatthew Wild <mwild1@gmail.com>2010-01-29 03:06:37 +0000
commit01fd496348b77267d56f72211b430b5516629b32 (patch)
tree8419cb74cd81c1ce18ea61368c7e9064874933b9
parent5a9c02408468273025dc80c2dc0df43be13cd679 (diff)
downloadprosody-01fd496348b77267d56f72211b430b5516629b32.tar.gz
prosody-01fd496348b77267d56f72211b430b5516629b32.zip
Backed out changeset a4f9ed3f912e (you didn't see this)
-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 9640cafc..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 not stanza.attr.from or not stanza.attr.to or 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;