# HG changeset patch # User Matthew Wild # Date 1487582978 0 # Node ID 5ff7eb601d602232502fb45d811a9c2591511d18 # Parent b2fc41001c8e020bd9a5f82cc188c0a0d34e622c mod_firewall: Code formatting diff -r b2fc41001c8e -r 5ff7eb601d60 mod_firewall/mod_firewall.lua --- a/mod_firewall/mod_firewall.lua Mon Feb 20 09:29:25 2017 +0000 +++ b/mod_firewall/mod_firewall.lua Mon Feb 20 09:29:38 2017 +0000 @@ -8,7 +8,7 @@ ZONE = { -- Default zone that includes all local hosts ["$local"] = setmetatable({}, { __index = prosody.hosts }); - } + }; }; local default_chains = { @@ -44,7 +44,7 @@ -- Returns the input if it is safe to be used as a variable name, otherwise nil function idsafe(name) - return name:match("^%a[%w_]*$") + return name:match("^%a[%w_]*$"); end local meta_funcs = {