# HG changeset patch # User Kim Alvefur # Date 1458222308 -3600 # Node ID 5f6c18fd01617dd3a04fe5ddf4ebea397d5daa6b # Parent 643b254e75de82f752dc7d6247c2dc4083abac1c mod_firewall: Correct zone condition to check bare JID diff -r 643b254e75de -r 5f6c18fd0161 mod_firewall/conditions.lib.lua --- 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), {