projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Change modules to use the new add_feature module API method.
[prosody.git]
/
plugins
/
mod_uptime.lua
diff --git
a/plugins/mod_uptime.lua
b/plugins/mod_uptime.lua
index 2f04fc6f748a02892810f9d38afdb27fe9259bfa..51457551c9455c29277f9342f42f30fa6cebe88c 100644
(file)
--- a/
plugins/mod_uptime.lua
+++ b/
plugins/mod_uptime.lua
@@
-26,7
+26,7
@@
local t_concat = table.concat;
\r
local start_time = os.time();
\r
\r
-
require "core.discomanager".set("uptime",
"jabber:iq:last");
\r
+
module:add_feature(
"jabber:iq:last");
\r
\r
module:add_iq_handler({"c2s", "s2sin"}, "jabber:iq:last",
\r
function (origin, stanza)
\r