# HG changeset patch # User Kim Alvefur # Date 1480791608 -3600 # Node ID 9159f916689373b9b0fb7a9f5d2dde5396476a06 # Parent e327b06b9a1bcfe9426e0d802a9407e087c4f274 mod_firewall: Use the sender bare JID instead of 'to' for stanzas to self diff -r e327b06b9a1b -r 9159f9166893 mod_firewall/mod_firewall.lua --- a/mod_firewall/mod_firewall.lua Sat Dec 03 15:28:22 2016 +0100 +++ b/mod_firewall/mod_firewall.lua Sat Dec 03 20:00:08 2016 +0100 @@ -90,7 +90,7 @@ jid_bare = { global_code = [[local jid_bare = require "util.jid".bare;]]; }; - to = { local_code = [[local to = stanza.attr.to;]] }; + to = { local_code = [[local to = stanza.attr.to or jid_bare(session.full_jid);]]; depends = { "jid_bare" } }; from = { local_code = [[local from = stanza.attr.from;]] }; type = { local_code = [[local type = stanza.attr.type;]] }; name = { local_code = [[local name = stanza.name]] };