aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_uptime.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mod_uptime.lua')
-rw-r--r--plugins/mod_uptime.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_uptime.lua b/plugins/mod_uptime.lua
index 2e369b16..b018da7b 100644
--- a/plugins/mod_uptime.lua
+++ b/plugins/mod_uptime.lua
@@ -23,6 +23,7 @@ module:hook("iq/host/jabber:iq:last:query", function(event)
end);
-- Ad-hoc command
+module:depends "adhoc";
local adhoc_new = module:require "adhoc".new;
function uptime_text()
@@ -39,7 +40,7 @@ function uptime_text()
minutes, (minutes ~= 1 and "s") or "", os.date("%c", prosody.start_time));
end
-function uptime_command_handler (self, data, state)
+function uptime_command_handler ()
return { info = uptime_text(), status = "completed" };
end