aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_uptime.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2011-08-14 14:00:54 -0400
committerMatthew Wild <mwild1@gmail.com>2011-08-14 14:00:54 -0400
commit263e2e801539a361cd7b07ba6fee3379ac806817 (patch)
treeff9796032c5764af7a5b042e09d125183a50f27e /plugins/mod_uptime.lua
parent5f57f8ff0b06e3dac8809603bdeed450ba1e8b2e (diff)
downloadprosody-263e2e801539a361cd7b07ba6fee3379ac806817.tar.gz
prosody-263e2e801539a361cd7b07ba6fee3379ac806817.zip
mod_uptime: Use module:hook_global()
Diffstat (limited to 'plugins/mod_uptime.lua')
-rw-r--r--plugins/mod_uptime.lua2
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");