Software /
code /
prosody-modules
Comparison
mod_adhoc_cmd_uptime/mod_adhoc_cmd_uptime.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 | 38:b9bf8a35b064 |
child | 121:a9898f13c89e |
comparison
equal
deleted
inserted
replaced
108:4c2b35e3d979 | 109:9b63fd1196c0 |
---|---|
28 return true; | 28 return true; |
29 end | 29 end |
30 | 30 |
31 local descriptor = adhoc_new("Get uptime", "uptime", uptime_command_handler); | 31 local descriptor = adhoc_new("Get uptime", "uptime", uptime_command_handler); |
32 | 32 |
33 function module.unload() | |
34 module:remove_item("adhoc", descriptor); | |
35 end | |
36 | |
37 module:add_item ("adhoc", descriptor); | 33 module:add_item ("adhoc", descriptor); |
38 | 34 |