# HG changeset patch # User Kim Alvefur # Date 1681712780 -7200 # Node ID c35f3c1762b508560473b57ae2bcaa0a0b176c0e # Parent f8ec43db580bcf29095996290197bc9d5cbad0d6 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. diff -r f8ec43db580b -r c35f3c1762b5 mod_audit/mod_audit.lua --- 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" }; });