mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 05:37:39 +03:00
mod_uptime: Fix bad uptime if module is loaded at startup
This commit is contained in:
parent
118883d655
commit
d51286cbf6
1 changed files with 2 additions and 0 deletions
|
@ -15,6 +15,8 @@ local t_concat = table.concat;
|
|||
|
||||
local start_time = prosody.start_time;
|
||||
|
||||
prosody.events.add_handler("server-started", function () start_time = prosody.start_time end);
|
||||
|
||||
module:add_feature("jabber:iq:last");
|
||||
|
||||
module:add_iq_handler({"c2s", "s2sin"}, "jabber:iq:last",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue