comparison plugins/mod_account_activity.lua @ 14196:303069346d10 13.0

mod_account_activity: Remove unnecessary variable This was added for trunk, 13.0 doesn't have the code that uses opts
author Matthew Wild <mwild1@gmail.com>
date Tue, 26 May 2026 12:30:17 +0100
parents 0c81b8fede94
children 3b26b8772fb1
comparison
equal deleted inserted replaced
14195:8d726f5d044a 14196:303069346d10
55 { name = "host"; type = "string" }; 55 { name = "host"; type = "string" };
56 { name = "duration"; type = "string" }; 56 { name = "duration"; type = "string" };
57 }; 57 };
58 host_selector = "host"; 58 host_selector = "host";
59 handler = function(self, host, duration) --luacheck: ignore 212/self 59 handler = function(self, host, duration) --luacheck: ignore 212/self
60 opts = opts or {};
61
62 local um = require "prosody.core.usermanager"; 60 local um = require "prosody.core.usermanager";
63 local duration_sec = require "prosody.util.human.io".parse_duration(duration or ""); 61 local duration_sec = require "prosody.util.human.io".parse_duration(duration or "");
64 if not duration_sec then 62 if not duration_sec then
65 return false, ("Invalid duration %q - try something like \"30d\""):format(duration); 63 return false, ("Invalid duration %q - try something like \"30d\""):format(duration);
66 end 64 end