Comparison

mod_firewall/mod_firewall.lua @ 2077:368b091e723b

mod_firewall: Rename argument to avoid name clash [luacheck]
author Kim Alvefur <zash@zash.se>
date Fri, 11 Mar 2016 18:48:05 +0100
parent 2076:d2ad556dcfb7
child 2078:11539785cb92
comparison
equal deleted inserted replaced
2076:d2ad556dcfb7 2077:368b091e723b
87 return ("local throttle_%s = rates.%s;"):format(throttle, throttle); 87 return ("local throttle_%s = rates.%s;"):format(throttle, throttle);
88 end; 88 end;
89 }; 89 };
90 }; 90 };
91 91
92 local function include_dep(dep, code) 92 local function include_dep(dependency, code)
93 local dep, dep_param = dep:match("^([^:]+):?(.*)$"); 93 local dep, dep_param = dependency:match("^([^:]+):?(.*)$");
94 local dep_info = available_deps[dep]; 94 local dep_info = available_deps[dep];
95 if not dep_info then 95 if not dep_info then
96 module:log("error", "Dependency not found: %s", dep); 96 module:log("error", "Dependency not found: %s", dep);
97 return; 97 return;
98 end 98 end