Comparison

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
comparison
equal deleted inserted replaced
9571:5c475f6e89a4 9572:867e40b82409
42 return { info = uptime_text(), status = "completed" }; 42 return { info = uptime_text(), status = "completed" };
43 end 43 end
44 44
45 local descriptor = adhoc_new("Get uptime", "uptime", uptime_command_handler); 45 local descriptor = adhoc_new("Get uptime", "uptime", uptime_command_handler);
46 46
47 module:add_item ("adhoc", descriptor); 47 module:provides("adhoc", descriptor);