projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bumper commit for the new modulemanager API \o/ Updates all the modules, though some...
[prosody.git]
/
plugins
/
mod_uptime.lua
diff --git
a/plugins/mod_uptime.lua
b/plugins/mod_uptime.lua
index 043f65142c0f6a687e3324221c9003bb654b5c1b..4b4c28d11000243febdb708b3b3df56a02c5fefb 100644
(file)
--- a/
plugins/mod_uptime.lua
+++ b/
plugins/mod_uptime.lua
@@
-6,7
+6,9
@@
local t_concat = table.concat;
\r
local start_time = os.time();
\r
\r
\r
local start_time = os.time();
\r
\r
-add_iq_handler({"c2s", "s2sin"}, "jabber:iq:last",
\r
+require "core.discomanager".set("uptime", "jabber:iq:last");
\r
+
\r
+module:add_iq_handler({"c2s", "s2sin"}, "jabber:iq:last",
\r
function (origin, stanza)
\r
if stanza.tags[1].name == "query" then
\r
if stanza.attr.type == "get" then
\r
function (origin, stanza)
\r
if stanza.tags[1].name == "query" then
\r
if stanza.attr.type == "get" then
\r
@@
-20,5
+22,3
@@
add_iq_handler({"c2s", "s2sin"}, "jabber:iq:last",
end
\r
end
\r
end);
\r
end
\r
end
\r
end);
\r
-
\r
-
\r