Diff

plugins/mod_ping.lua @ 9572:867e40b82409

mod_ping, mod_uptime: Use module:provides
author Kim Alvefur <zash@zash.se>
date Sat, 27 Oct 2018 17:36:51 +0200
parent 8963:ff522d5db95d
child 10399:270cb2821566
line wrap: on
line diff
--- a/plugins/mod_ping.lua	Sat Oct 27 17:25:50 2018 +0200
+++ b/plugins/mod_ping.lua	Sat Oct 27 17:36:51 2018 +0200
@@ -29,5 +29,5 @@
 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);