comparison 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
comparison
equal deleted inserted replaced
108:4c2b35e3d979 109:9b63fd1196c0
271 local delete_user_desc = adhoc_new("Delete User", "http://jabber.org/protocol/admin#delete-user", delete_user_command_handler, "admin"); 271 local delete_user_desc = adhoc_new("Delete User", "http://jabber.org/protocol/admin#delete-user", delete_user_command_handler, "admin");
272 local get_user_password_desc = adhoc_new("Get User Password", "http://jabber.org/protocol/admin#get-user-password", get_user_password_handler, "admin"); 272 local get_user_password_desc = adhoc_new("Get User Password", "http://jabber.org/protocol/admin#get-user-password", get_user_password_handler, "admin");
273 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"); 273 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");
274 local announce_desc = adhoc_new("Send Announcement to Online Users", "http://jabber.org/protocol/admin#announce", announce_handler, "admin"); 274 local announce_desc = adhoc_new("Send Announcement to Online Users", "http://jabber.org/protocol/admin#announce", announce_handler, "admin");
275 275
276 function module.unload()
277 module:remove_item("adhoc", add_user_desc);
278 module:remove_item("adhoc", delete_user_desc);
279 module:remove_item("adhoc", get_user_password_desc);
280 module:remove_item("adhoc", get_online_users_desc);
281 module:remove_item("adhoc", announce_desc);
282 end
283
284 module:add_item("adhoc", add_user_desc); 276 module:add_item("adhoc", add_user_desc);
285 module:add_item("adhoc", delete_user_desc); 277 module:add_item("adhoc", delete_user_desc);
286 module:add_item("adhoc", get_user_password_desc); 278 module:add_item("adhoc", get_user_password_desc);
287 module:add_item("adhoc", get_online_users_desc); 279 module:add_item("adhoc", get_online_users_desc);
288 module:add_item("adhoc", announce_desc); 280 module:add_item("adhoc", announce_desc);