# HG changeset patch # User Matthew Wild # Date 1487929849 0 # Node ID 2f1e25706f81cee216240d47b74da715a174651a # Parent 78efd064aef31d51dd25115c27c95efd186260a0 mod_firewall: TO SELF: Use raw stanza.attr.to directly, as 'to' defaults to bare JID if nil diff -r 78efd064aef3 -r 2f1e25706f81 mod_firewall/conditions.lib.lua --- a/mod_firewall/conditions.lib.lua Fri Feb 24 09:49:30 2017 +0000 +++ b/mod_firewall/conditions.lib.lua Fri Feb 24 09:50:49 2017 +0000 @@ -76,7 +76,8 @@ end function condition_handlers.TO_SELF() - return ("to == nil"); + -- Intentionally not using 'to' here, as that defaults to bare JID when nil + return ("stanza.attr.to == nil"); end function condition_handlers.TYPE(type)