Software /
code /
prosody
Comparison
plugins/mod_admin_adhoc.lua @ 4926:58714123f600
mod_adhoc, mod_admin_adhoc, mod_announce: Use module:provides() to manage Ad-Hoc commands
author | Florian Zeitz <florob@babelmonkeys.de> |
---|---|
date | Tue, 12 Jun 2012 14:29:04 +0200 |
parent | 4780:4b8f2b91826c |
child | 4932:212e81ac6ebb |
child | 4955:4f1b6a4784f9 |
comparison
equal
deleted
inserted
replaced
4923:760a1f367f02 | 4926:58714123f600 |
---|---|
603 local load_module_desc = adhoc_new("Load module", "http://prosody.im/protocol/modules#load", load_module_handler, "admin"); | 603 local load_module_desc = adhoc_new("Load module", "http://prosody.im/protocol/modules#load", load_module_handler, "admin"); |
604 local reload_modules_desc = adhoc_new("Reload modules", "http://prosody.im/protocol/modules#reload", reload_modules_handler, "admin"); | 604 local reload_modules_desc = adhoc_new("Reload modules", "http://prosody.im/protocol/modules#reload", reload_modules_handler, "admin"); |
605 local shut_down_service_desc = adhoc_new("Shut Down Service", "http://jabber.org/protocol/admin#shutdown", shut_down_service_handler, "global_admin"); | 605 local shut_down_service_desc = adhoc_new("Shut Down Service", "http://jabber.org/protocol/admin#shutdown", shut_down_service_handler, "global_admin"); |
606 local unload_modules_desc = adhoc_new("Unload modules", "http://prosody.im/protocol/modules#unload", unload_modules_handler, "admin"); | 606 local unload_modules_desc = adhoc_new("Unload modules", "http://prosody.im/protocol/modules#unload", unload_modules_handler, "admin"); |
607 | 607 |
608 module:add_item("adhoc", add_user_desc); | 608 module:provides("adhoc", add_user_desc); |
609 module:add_item("adhoc", change_user_password_desc); | 609 module:provides("adhoc", change_user_password_desc); |
610 module:add_item("adhoc", config_reload_desc); | 610 module:provides("adhoc", config_reload_desc); |
611 module:add_item("adhoc", delete_user_desc); | 611 module:provides("adhoc", delete_user_desc); |
612 module:add_item("adhoc", end_user_session_desc); | 612 module:provides("adhoc", end_user_session_desc); |
613 module:add_item("adhoc", get_user_password_desc); | 613 module:provides("adhoc", get_user_password_desc); |
614 module:add_item("adhoc", get_user_roster_desc); | 614 module:provides("adhoc", get_user_roster_desc); |
615 module:add_item("adhoc", get_user_stats_desc); | 615 module:provides("adhoc", get_user_stats_desc); |
616 module:add_item("adhoc", get_online_users_desc); | 616 module:provides("adhoc", get_online_users_desc); |
617 module:add_item("adhoc", list_modules_desc); | 617 module:provides("adhoc", list_modules_desc); |
618 module:add_item("adhoc", load_module_desc); | 618 module:provides("adhoc", load_module_desc); |
619 module:add_item("adhoc", reload_modules_desc); | 619 module:provides("adhoc", reload_modules_desc); |
620 module:add_item("adhoc", shut_down_service_desc); | 620 module:provides("adhoc", shut_down_service_desc); |
621 module:add_item("adhoc", unload_modules_desc); | 621 module:provides("adhoc", unload_modules_desc); |