Mercurial > prosody-modules
diff 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 |
| parents | 58d326d86a9a |
| children | a9898f13c89e |
line wrap: on
line diff
--- a/mod_adhoc_cmd_ping/mod_adhoc_cmd_ping.lua Tue Dec 08 21:29:41 2009 +0100 +++ b/mod_adhoc_cmd_ping/mod_adhoc_cmd_ping.lua Wed Dec 09 23:08:19 2009 +0100 @@ -15,9 +15,5 @@ local descriptor = adhoc_new("Ping", "ping", ping_command_handler); -function module.unload() - module:remove_item("adhoc", descriptor); -end - module:add_item ("adhoc", descriptor);
