comparison mod_audit/mod_audit.lua @ 5351:c35f3c1762b5

mod_audit: Move underscore to avoid luacheck warning Underscore as prefix is taken as a signal that the variable is unused, but then it is used and luacheck makes noise about that.
author Kim Alvefur <zash@zash.se>
date Mon, 17 Apr 2023 08:26:20 +0200
parents e00e3e2c72a3
children 9bbf5b0673a2
comparison
equal deleted inserted replaced
5350:f8ec43db580b 5351:c35f3c1762b5
169 169
170 function moduleapi.audit(module, user, event_type, extra) 170 function moduleapi.audit(module, user, event_type, extra)
171 audit(module.host, user, "mod_" .. module:get_name(), event_type, extra); 171 audit(module.host, user, "mod_" .. module:get_name(), event_type, extra);
172 end 172 end
173 173
174 function module.command(_arg) 174 function module.command(arg_)
175 local jid = require "util.jid"; 175 local jid = require "util.jid";
176 local arg = require "util.argparse".parse(_arg, { 176 local arg = require "util.argparse".parse(arg_, {
177 value_params = { "limit" }; 177 value_params = { "limit" };
178 }); 178 });
179 179
180 for k, v in pairs(arg) do print("U", k, v) end 180 for k, v in pairs(arg) do print("U", k, v) end
181 local query_user, host = jid.prepped_split(arg[1]); 181 local query_user, host = jid.prepped_split(arg[1]);