Mercurial > prosody-modules
diff mod_adhoc_cmd_admin/mod_adhoc_cmd_admin.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 | e172f02726d9 |
children | e02281edc273 |
line wrap: on
line diff
--- a/mod_adhoc_cmd_admin/mod_adhoc_cmd_admin.lua Tue Dec 08 21:29:41 2009 +0100 +++ b/mod_adhoc_cmd_admin/mod_adhoc_cmd_admin.lua Wed Dec 09 23:08:19 2009 +0100 @@ -273,14 +273,6 @@ local get_online_users_desc = adhoc_new("Get List of Online Users", "http://jabber.org/protocol/admin#get-online-users", get_online_users_command_handler, "admin"); local announce_desc = adhoc_new("Send Announcement to Online Users", "http://jabber.org/protocol/admin#announce", announce_handler, "admin"); -function module.unload() - module:remove_item("adhoc", add_user_desc); - module:remove_item("adhoc", delete_user_desc); - module:remove_item("adhoc", get_user_password_desc); - module:remove_item("adhoc", get_online_users_desc); - module:remove_item("adhoc", announce_desc); -end - module:add_item("adhoc", add_user_desc); module:add_item("adhoc", delete_user_desc); module:add_item("adhoc", get_user_password_desc);