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 | 263e2e801539a361cd7b07ba6fee3379ac806817 (patch) | |
tree | ff9796032c5764af7a5b042e09d125183a50f27e | |
parent | 5f57f8ff0b06e3dac8809603bdeed450ba1e8b2e (diff) | |
download | prosody-263e2e801539a361cd7b07ba6fee3379ac806817.tar.gz prosody-263e2e801539a361cd7b07ba6fee3379ac806817.zip |
mod_uptime: Use module:hook_global()
-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"); |