Mercurial > prosody-modules
diff 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 |
line wrap: on
line diff
--- a/mod_audit/mod_audit.lua Mon Apr 17 08:01:09 2023 +0200 +++ b/mod_audit/mod_audit.lua Mon Apr 17 08:26:20 2023 +0200 @@ -171,9 +171,9 @@ audit(module.host, user, "mod_" .. module:get_name(), event_type, extra); end -function module.command(_arg) +function module.command(arg_) local jid = require "util.jid"; - local arg = require "util.argparse".parse(_arg, { + local arg = require "util.argparse".parse(arg_, { value_params = { "limit" }; });