diff options
author | Matthew Wild <mwild1@gmail.com> | 2011-08-14 14:00:54 -0400 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2011-08-14 14:00:54 -0400 |
commit | f0419180ead46f4172565be7c810e69fae6c6a93 (patch) | |
tree | ff9796032c5764af7a5b042e09d125183a50f27e /plugins | |
parent | 7a4fd8dbcb09c10206c1c5783a2c696514ba48ea (diff) | |
download | prosody-f0419180ead46f4172565be7c810e69fae6c6a93.tar.gz prosody-f0419180ead46f4172565be7c810e69fae6c6a93.zip |
mod_uptime: Use module:hook_global()
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_uptime.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_uptime.lua b/plugins/mod_uptime.lua index 52b33c74..3f275b2f 100644 --- a/plugins/mod_uptime.lua +++ b/plugins/mod_uptime.lua @@ -9,7 +9,7 @@ local st = require "util.stanza"; local start_time = prosody.start_time; -prosody.events.add_handler("server-started", function() start_time = prosody.start_time end); +module:hook_global("server-started", function() start_time = prosody.start_time end); -- XEP-0012: Last activity module:add_feature("jabber:iq:last"); |