Software /
code /
prosody-modules
Diff
mod_firewall/mod_firewall.lua @ 2418:ef95853cf900
mod_firewall: More semicolons
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 16 Dec 2016 03:30:46 +0100 |
parent | 2416:ade918cd9ca7 |
child | 2464:01babf1caa4a |
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);