mod_firewall: Code formatting
authorMatthew Wild <mwild1@gmail.com>
Mon, 20 Feb 2017 09:29:38 +0000
changeset 2531 5ff7eb601d60
parent 2530 b2fc41001c8e
child 2532 44a71584521d
mod_firewall: Code formatting
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 = {