diff mod_firewall/conditions.lib.lua @ 2119:5f6c18fd0161

mod_firewall: Correct zone condition to check bare JID
author Kim Alvefur <zash@zash.se>
date Thu, 17 Mar 2016 14:45:08 +0100
parents 2bb42ba342f3
children edf5cf3c474b
line wrap: on
line diff
--- a/mod_firewall/conditions.lib.lua	Thu Mar 17 14:33:14 2016 +0100
+++ b/mod_firewall/conditions.lib.lua	Thu Mar 17 14:45:08 2016 +0100
@@ -73,7 +73,7 @@
 local function zone_check(zone, which)
 	local which_not = which == "from" and "to" or "from";
 	return ("(zone_%s[%s_host] or zone_%s[%s] or zone_%s[bare_%s]) "
-		.."and not(zone_%s[%s_host] or zone_%s[%s] or zone_%s[%s])"
+		.."and not(zone_%s[%s_host] or zone_%s[%s] or zone_%s[bare_%s])"
 		)
 		:format(zone, which, zone, which, zone, which,
 		zone, which_not, zone, which_not, zone, which_not), {