mod_firewall/conditions.lib.lua
changeset 2567 2f1e25706f81
parent 2559 a9eb4d5566f3
child 2568 240985f7d1f7
--- 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)