Software /
code /
prosody
Changeset
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 |
parents | 1523:841d61be198f |
children | 1525:f30886f684eb |
files | plugins/mod_uptime.lua |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
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",