aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-02-05 15:52:46 +0100
committerKim Alvefur <zash@zash.se>2021-02-05 15:52:46 +0100
commit6a7ef486690afd0a1d1c589a64603da4852a4e23 (patch)
tree1b5bd725beb3056bb2a215568586ec92390a91ba
parent8825267f5caa18746116349894b24ce881e9c5d2 (diff)
downloadprosody-6a7ef486690afd0a1d1c589a64603da4852a4e23.tar.gz
prosody-6a7ef486690afd0a1d1c589a64603da4852a4e23.zip
mod_admin_shell: Add help section with (top level) MUC commands
These were previously only documented on the site.
-rw-r--r--plugins/mod_admin_shell.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua
index 2ca2f1d4..04143cc9 100644
--- a/plugins/mod_admin_shell.lua
+++ b/plugins/mod_admin_shell.lua
@@ -189,6 +189,7 @@ function commands.help(session, data)
print [[module - Commands to load/reload/unload modules/plugins]]
print [[host - Commands to activate, deactivate and list virtual hosts]]
print [[user - Commands to create and delete users, and change their passwords]]
+ print [[muc - Commands to create, list and manage chat rooms]]
print [[server - Uptime, version, shutting down, etc.]]
print [[port - Commands to manage ports the server is listening on]]
print [[dns - Commands to manage and inspect the internal DNS resolver]]
@@ -225,6 +226,11 @@ function commands.help(session, data)
print [[user:password(jid, password) - Set the password for the specified user account]]
print [[user:delete(jid) - Permanently remove the specified user account]]
print [[user:list(hostname, pattern) - List users on the specified host, optionally filtering with a pattern]]
+ elseif section == "muc" then
+ -- TODO `muc:room():foo()` commands
+ print [[muc:create(roomjid, { config }) - Create the specified MUC room with the given config]]
+ print [[muc:list(host) - List rooms on the specified MUC component]]
+ print [[muc:room(roomjid) - Create the specified MUC room with the given config]]
elseif section == "server" then
print [[server:version() - Show the server's version number]]
print [[server:uptime() - Show how long the server has been running]]