projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mod_register: Use util.cache to limit the number of per-ip throttles kept
[prosody.git]
/
plugins
/
mod_uptime.lua
diff --git
a/plugins/mod_uptime.lua
b/plugins/mod_uptime.lua
index 52b33c7489ea2cecda57624e9579a3ba97229706..2e369b16f38a25ab21d363bfe7ebb90171eda64f 100644
(file)
--- a/
plugins/mod_uptime.lua
+++ b/
plugins/mod_uptime.lua
@@
-1,7
+1,7
@@
-- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
-- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
---
+--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
@@
-9,7
+9,7
@@
local st = require "util.stanza";
local start_time = prosody.start_time;
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");
-- XEP-0012: Last activity
module:add_feature("jabber:iq:last");