# HG changeset patch # User Kim Alvefur # Date 1540654611 -7200 # Node ID 867e40b82409efb355802158a4fdb26750b79c6d # Parent 5c475f6e89a4429afd6f769a8a49316f942afdb0 mod_ping, mod_uptime: Use module:provides diff -r 5c475f6e89a4 -r 867e40b82409 plugins/mod_ping.lua --- 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); diff -r 5c475f6e89a4 -r 867e40b82409 plugins/mod_uptime.lua --- a/plugins/mod_uptime.lua Sat Oct 27 17:25:50 2018 +0200 +++ b/plugins/mod_uptime.lua Sat Oct 27 17:36:51 2018 +0200 @@ -44,4 +44,4 @@ local descriptor = adhoc_new("Get uptime", "uptime", uptime_command_handler); -module:add_item ("adhoc", descriptor); +module:provides("adhoc", descriptor);