aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-08-14 15:15:35 +0100
committerMatthew Wild <mwild1@gmail.com>2010-08-14 15:15:35 +0100
commit8eed3032da9c51b7014cee48ec44e8ddd56dda46 (patch)
treedd71698e4f8b9dda78cffa3f64cbe95e7bd33d83
parentefff82cd9424a78012d68f4c70427eeeda1e50eb (diff)
downloadprosody-8eed3032da9c51b7014cee48ec44e8ddd56dda46.tar.gz
prosody-8eed3032da9c51b7014cee48ec44e8ddd56dda46.zip
mod_console: Add host:* commands to help (thanks Zash)
-rw-r--r--plugins/mod_console.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/mod_console.lua b/plugins/mod_console.lua
index ab47c52f..9972e420 100644
--- a/plugins/mod_console.lua
+++ b/plugins/mod_console.lua
@@ -177,6 +177,7 @@ commands["!"] = function (session, data)
session.print("Sorry, not sure what you want");
end
+
function commands.help(session, data)
local print = session.print;
local section = data:match("^help (%w+)");
@@ -187,6 +188,7 @@ function commands.help(session, data)
print [[c2s - Commands to manage local client-to-server sessions]]
print [[s2s - Commands to manage sessions between this server and others]]
print [[module - Commands to load/reload/unload modules/plugins]]
+ print [[host - Commands to activate, deactivate and list virtual hosts]]
print [[server - Uptime, version, shutting down, etc.]]
print [[config - Reloading the configuration, etc.]]
print [[console - Help regarding the console itself]]
@@ -203,6 +205,10 @@ function commands.help(session, data)
print [[module:reload(module, host) - The same, but unloads and loads the module (saving state if the module supports it)]]
print [[module:unload(module, host) - The same, but just unloads the module from memory]]
print [[module:list(host) - List the modules loaded on the specified host]]
+ elseif section == "host" then
+ print [[host:activate(hostname) - Activates the specified host]]
+ print [[host:deactivate(hostname) - Disconnects all clients on this host and deactivates]]
+ print [[host:list() - List the currently-activated hosts]]
elseif section == "server" then
print [[server:version() - Show the server's version number]]
print [[server:uptime() - Show how long the server has been running]]