comparison mod_adhoc_cmd_ping/mod_adhoc_cmd_ping.lua @ 28:b9d063dd16d5

mod_adhoc, mod_adhoc_cmd_ping: Code cleanup
author Florian Zeitz <florob@babelmonkeys.de>
date Fri, 09 Oct 2009 21:47:20 +0200
parents 2be8bcce5b18
children 58d326d86a9a
comparison
equal deleted inserted replaced
26:1fb5b8c20004 28:b9d063dd16d5
14 end 14 end
15 15
16 local descriptor = { name="Ping", node="ping", handler=ping_command_handler }; 16 local descriptor = { name="Ping", node="ping", handler=ping_command_handler };
17 17
18 function module.unload() 18 function module.unload()
19 module:log("debug", "Removing ping command");
20 module:remove_item("adhoc", descriptor); 19 module:remove_item("adhoc", descriptor);
21 end 20 end
22 21
23 module:add_item ("adhoc", descriptor); 22 module:add_item ("adhoc", descriptor);
24 23