Comparison

mod_firewall/conditions.lib.lua @ 2859:22e11645a895

mod_firewall: Trim trailing whitespace [luacheck]
author Kim Alvefur <zash@zash.se>
date Wed, 03 Jan 2018 07:49:22 +0100
parent 2857:ff1666716d10
child 2882:6f289283feb1
comparison
equal deleted inserted replaced
2858:150a7bd59043 2859:22e11645a895
257 end 257 end
258 258
259 if not param then 259 if not param then
260 return ("not global_throttle_%s:poll(1)"):format(name), { "globalthrottle:"..name, unpack(meta_deps) }; 260 return ("not global_throttle_%s:poll(1)"):format(name), { "globalthrottle:"..name, unpack(meta_deps) };
261 end 261 end
262 return ("not multi_throttle_%s:poll_on(%s, 1)"):format(name, param), { "multithrottle:"..name, unpack(meta_deps) }; 262 return ("not multi_throttle_%s:poll_on(%s, 1)"):format(name, param), { "multithrottle:"..name, unpack(meta_deps) };
263 end 263 end
264 264
265 function condition_handlers.ORIGIN_MARKED(name_and_time) 265 function condition_handlers.ORIGIN_MARKED(name_and_time)
266 local name, time = name_and_time:match("^%s*([%w_]+)%s+%(([^)]+)s%)%s*$"); 266 local name, time = name_and_time:match("^%s*([%w_]+)%s+%(([^)]+)s%)%s*$");
267 if not name then 267 if not name then