Software /
code /
prosody-modules
Comparison
mod_adhoc_cmd_ping/mod_adhoc_cmd_ping.lua @ 109:9b63fd1196c0
mod_adhoc_cmd*: Don't explicitly remove items. Handled by Prosody itself already
mod_adhoc: Remove superfluous space
author | Florian Zeitz <florob@babelmonkeys.de> |
---|---|
date | Wed, 09 Dec 2009 23:08:19 +0100 |
parent | 36:58d326d86a9a |
child | 121:a9898f13c89e |
comparison
equal
deleted
inserted
replaced
108:4c2b35e3d979 | 109:9b63fd1196c0 |
---|---|
13 return true; | 13 return true; |
14 end | 14 end |
15 | 15 |
16 local descriptor = adhoc_new("Ping", "ping", ping_command_handler); | 16 local descriptor = adhoc_new("Ping", "ping", ping_command_handler); |
17 | 17 |
18 function module.unload() | |
19 module:remove_item("adhoc", descriptor); | |
20 end | |
21 | |
22 module:add_item ("adhoc", descriptor); | 18 module:add_item ("adhoc", descriptor); |
23 | 19 |