Diff

plugins/mod_uptime.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 9226:affd84be3fc3
child 10565:421b2f8369fd
line wrap: on
line diff
--- 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);