diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-01-29 02:49:34 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-01-29 02:49:34 +0000 |
commit | 5a9c02408468273025dc80c2dc0df43be13cd679 (patch) | |
tree | 92884922801dbba8b1d4bc750136541bd3734d58 /plugins/mod_privacy.lua | |
parent | 23725006905c94572d6b54c12ba28507f75070be (diff) | |
download | prosody-5a9c02408468273025dc80c2dc0df43be13cd679.tar.gz prosody-5a9c02408468273025dc80c2dc0df43be13cd679.zip |
mod_privacy: ...and no 'to' for presence implies an outgoing broadcast
Diffstat (limited to 'plugins/mod_privacy.lua')
-rw-r--r-- | plugins/mod_privacy.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_privacy.lua b/plugins/mod_privacy.lua index 66ac9f02..9640cafc 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 not stanza.attr.from or not stanza.attr.to 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; |