Mercurial > prosody-hg
diff plugins/mod_account_activity.lua @ 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 | f463e101fbd9 |
| children | 4f4c346e4f39 303069346d10 |
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
