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
commitf0419180ead46f4172565be7c810e69fae6c6a93 (patch)
treeff9796032c5764af7a5b042e09d125183a50f27e /plugins/mod_uptime.lua
parent7a4fd8dbcb09c10206c1c5783a2c696514ba48ea (diff)
downloadprosody-f0419180ead46f4172565be7c810e69fae6c6a93.tar.gz
prosody-f0419180ead46f4172565be7c810e69fae6c6a93.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");