Software /
code /
prosody-modules
Changeset
2418:ef95853cf900
mod_firewall: More semicolons
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 16 Dec 2016 03:30:46 +0100 |
parents | 2417:5e7badecf7fe |
children | 2419:045d594a3707 |
files | mod_firewall/mod_firewall.lua |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_firewall/mod_firewall.lua Thu Dec 15 02:57:03 2016 +0100 +++ b/mod_firewall/mod_firewall.lua Fri Dec 16 03:30:46 2016 +0100 @@ -107,8 +107,8 @@ group_contains = { global_code = [[local group_contains = module:depends("groups").group_contains]]; }; - is_admin = { global_code = [[local is_admin = require "core.usermanager".is_admin]]}; - core_post_stanza = { global_code = [[local core_post_stanza = prosody.core_post_stanza]] }; + is_admin = { global_code = [[local is_admin = require "core.usermanager".is_admin;]]}; + core_post_stanza = { global_code = [[local core_post_stanza = prosody.core_post_stanza;]] }; zone = { global_code = function (zone) assert(idsafe(zone), "Invalid zone name: "..zone); return ("local zone_%s = zones[%q] or {};"):format(zone, zone); @@ -121,7 +121,7 @@ end return table.concat(defs, " "); end, depends = { "date_time" }; }; - timestamp = { global_code = [[local get_time = require "socket".gettime]]; local_code = [[local current_timestamp = get_time()]]; }; + timestamp = { global_code = [[local get_time = require "socket".gettime;]]; local_code = [[local current_timestamp = get_time();]]; }; globalthrottle = { global_code = function (throttle) assert(idsafe(throttle), "Invalid rate limit name: "..throttle);