aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_ping.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-07-02 23:41:47 +0200
committerKim Alvefur <zash@zash.se>2018-07-02 23:41:47 +0200
commitbbd5d427e539c378e12291540026cd5c84217f0c (patch)
treef51021b0143712d1ab31e4ec81025c7192e15f2c /plugins/mod_ping.lua
parent908099c06a1c4cd1555c2c19c6c8651f86b7fea7 (diff)
downloadprosody-bbd5d427e539c378e12291540026cd5c84217f0c.tar.gz
prosody-bbd5d427e539c378e12291540026cd5c84217f0c.zip
mod_ping: Depend on mod_ahoc
Diffstat (limited to 'plugins/mod_ping.lua')
-rw-r--r--plugins/mod_ping.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_ping.lua b/plugins/mod_ping.lua
index 5559c5ca..09f78efa 100644
--- a/plugins/mod_ping.lua
+++ b/plugins/mod_ping.lua
@@ -26,6 +26,7 @@ function ping_command_handler (self, data, state) -- luacheck: ignore 212
return { info = "Pong\n"..now, status = "completed" };
end
+module:depend "adhoc";
local adhoc_new = module:require "adhoc".new;
local descriptor = adhoc_new("Ping", "ping", ping_command_handler);
module:add_item ("adhoc", descriptor);