aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-10-27 17:36:51 +0200
committerKim Alvefur <zash@zash.se>2018-10-27 17:36:51 +0200
commitd60293d548780050a08a858515b36f057e33b44c (patch)
treea29f619b9b96c8dc06439dbf70d7dbbb5fb13ff1
parenteefe286057e8eb4d10030fd122c007d51d295d55 (diff)
downloadprosody-d60293d548780050a08a858515b36f057e33b44c.tar.gz
prosody-d60293d548780050a08a858515b36f057e33b44c.zip
mod_ping, mod_uptime: Use module:provides
-rw-r--r--plugins/mod_ping.lua2
-rw-r--r--plugins/mod_uptime.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_ping.lua b/plugins/mod_ping.lua
index 33f05197..5fff58d1 100644
--- a/plugins/mod_ping.lua
+++ b/plugins/mod_ping.lua
@@ -29,5 +29,5 @@ end
module:depends "adhoc";
local adhoc_new = module:require "adhoc".new;
local descriptor = adhoc_new("Ping", "ping", ping_command_handler);
-module:add_item ("adhoc", descriptor);
+module:provides("adhoc", descriptor);
diff --git a/plugins/mod_uptime.lua b/plugins/mod_uptime.lua
index 24985ef1..ccd8e511 100644
--- a/plugins/mod_uptime.lua
+++ b/plugins/mod_uptime.lua
@@ -44,4 +44,4 @@ end
local descriptor = adhoc_new("Get uptime", "uptime", uptime_command_handler);
-module:add_item ("adhoc", descriptor);
+module:provides("adhoc", descriptor);