Comparison

plugins/mod_ping.lua @ 8963:ff522d5db95d

mod_ping: Fix typo
author Kim Alvefur <zash@zash.se>
date Mon, 02 Jul 2018 23:51:19 +0200
parent 8961:5d4ebceaf8aa
child 9572:867e40b82409
comparison
equal deleted inserted replaced
8962:6c06bd455bbf 8963:ff522d5db95d
24 function ping_command_handler (self, data, state) -- luacheck: ignore 212 24 function ping_command_handler (self, data, state) -- luacheck: ignore 212
25 local now = datetime(); 25 local now = datetime();
26 return { info = "Pong\n"..now, status = "completed" }; 26 return { info = "Pong\n"..now, status = "completed" };
27 end 27 end
28 28
29 module:depend "adhoc"; 29 module:depends "adhoc";
30 local adhoc_new = module:require "adhoc".new; 30 local adhoc_new = module:require "adhoc".new;
31 local descriptor = adhoc_new("Ping", "ping", ping_command_handler); 31 local descriptor = adhoc_new("Ping", "ping", ping_command_handler);
32 module:add_item ("adhoc", descriptor); 32 module:add_item ("adhoc", descriptor);
33 33