# HG changeset patch # User Matthew Wild # Date 1264732896 0 # Node ID c4240df1b412212a26281ac633cd636a63245a61 # Parent d0c43c4dcb3f793b010331bbdde5c76d59e49992 mod_privacy: Mmph, no 'from' == from local diff -r d0c43c4dcb3f -r c4240df1b412 plugins/mod_privacy.lua --- a/plugins/mod_privacy.lua Fri Jan 29 02:24:36 2010 +0000 +++ b/plugins/mod_privacy.lua Fri Jan 29 02:41:36 2010 +0000 @@ -415,7 +415,7 @@ (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;