Mercurial > prosody-modules
diff mod_firewall/conditions.lib.lua @ 2563:2f1e25706f81
mod_firewall: TO SELF: Use raw stanza.attr.to directly, as 'to' defaults to bare JID if nil
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 24 Feb 2017 09:50:49 +0000 |
parents | a9eb4d5566f3 |
children | 240985f7d1f7 |
line wrap: on
line diff
--- 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)