Bumper commit for the new modulemanager API \o/ Updates all the modules, though some...
[prosody.git] / plugins / mod_uptime.lua
index 9c2cb45da70bac21c9afd312caf2064ba98cd445..4b4c28d11000243febdb708b3b3df56a02c5fefb 100644 (file)
@@ -8,7 +8,7 @@ local start_time = os.time();
 \r
 require "core.discomanager".set("uptime", "jabber:iq:last");\r
 \r
-add_iq_handler({"c2s", "s2sin"}, "jabber:iq:last", \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