Software / code / prosody-modules
Comparison
mod_audit/mod_audit.lua @ 6344:eb834f754f57 draft default tip
Merge update
| author | Trần H. Trung <xmpp:trần.h.trung@trung.fun> |
|---|---|
| date | Fri, 18 Jul 2025 20:45:38 +0700 |
| parent | 6335:9102d75131e4 |
comparison
equal
deleted
inserted
replaced
| 6309:342f88e8d522 | 6344:eb834f754f57 |
|---|---|
| 166 end | 166 end |
| 167 | 167 |
| 168 function module.command(arg_) | 168 function module.command(arg_) |
| 169 local jid = require "util.jid"; | 169 local jid = require "util.jid"; |
| 170 local arg = require "util.argparse".parse(arg_, { | 170 local arg = require "util.argparse".parse(arg_, { |
| 171 value_params = { "limit" }; | 171 value_params = { limit = true }; |
| 172 }); | 172 }); |
| 173 | 173 |
| 174 module:log("debug", "arg = %q", arg); | 174 module:log("debug", "arg = %q", arg); |
| 175 local query_jid = jid.prep(arg[1]); | 175 local query_jid = jid.prep(arg[1]); |
| 176 local host = jid.host(query_jid); | 176 local host = jid.host(query_jid); |
| 177 | 177 |