Diff

mod_firewall/mod_firewall.lua @ 2527:5ff7eb601d60

mod_firewall: Code formatting
author Matthew Wild <mwild1@gmail.com>
date Mon, 20 Feb 2017 09:29:38 +0000
parent 2526:b2fc41001c8e
child 2528:44a71584521d
line wrap: on
line diff
--- 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 = {