changeset 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 78efd064aef3
children 240985f7d1f7
files mod_firewall/conditions.lib.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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)