Mercurial > prosody-modules
comparison mod_adhoc_cmd_ping/mod_adhoc_cmd_ping.lua @ 30:fc4806a98fc4
merge ...
author | Thilo Cestonaro <thilo@cestona.ro> |
---|---|
date | Fri, 09 Oct 2009 23:23:54 +0200 |
parents | b9d063dd16d5 |
children | 58d326d86a9a |
comparison
equal
deleted
inserted
replaced
27:d91cb13ef0ee | 30:fc4806a98fc4 |
---|---|
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 |