Mercurial > prosody-hg
changeset 14165:0c81b8fede94 13.0
mod_account_activity: Don't traceback when called without options
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Tue, 19 May 2026 19:22:38 +0100 |
| parents | d9d99476f30a |
| children | 2a050069f37b |
| files | plugins/mod_account_activity.lua |
| diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_account_activity.lua Wed Apr 29 21:41:01 2026 +0200 +++ b/plugins/mod_account_activity.lua Tue May 19 19:22:38 2026 +0100 @@ -57,6 +57,8 @@ }; host_selector = "host"; handler = function(self, host, duration) --luacheck: ignore 212/self + opts = opts or {}; + local um = require "prosody.core.usermanager"; local duration_sec = require "prosody.util.human.io".parse_duration(duration or ""); if not duration_sec then
