From 23725006905c94572d6b54c12ba28507f75070be Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 29 Jan 2010 02:41:36 +0000 Subject: mod_privacy: Mmph, no 'from' == from local --- plugins/mod_privacy.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') 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; -- cgit v1.2.3