Software /
code /
prosody
Diff
plugins/mod_uptime.lua @ 1524:a89fec6d76d2
mod_uptime: Fix bad uptime if module is loaded at startup
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 10 Jul 2009 15:33:53 +0100 |
parent | 1523:841d61be198f |
child | 2015:2140c994671e |
line wrap: on
line diff
--- a/plugins/mod_uptime.lua Fri Jul 10 03:11:45 2009 +0100 +++ b/plugins/mod_uptime.lua Fri Jul 10 15:33:53 2009 +0100 @@ -15,6 +15,8 @@ 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",