Software /
code /
prosody
Comparison
plugins/mod_admin_telnet.lua @ 4974:1574f18b0ca4
mod_admin_telnet: Add info about user management commands to the help
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 09 Jul 2012 20:39:55 +0200 |
parent | 4973:3f7248ac1a3b |
child | 4977:7006ccbf22a9 |
comparison
equal
deleted
inserted
replaced
4973:3f7248ac1a3b | 4974:1574f18b0ca4 |
---|---|
185 print [[]] | 185 print [[]] |
186 print [[c2s - Commands to manage local client-to-server sessions]] | 186 print [[c2s - Commands to manage local client-to-server sessions]] |
187 print [[s2s - Commands to manage sessions between this server and others]] | 187 print [[s2s - Commands to manage sessions between this server and others]] |
188 print [[module - Commands to load/reload/unload modules/plugins]] | 188 print [[module - Commands to load/reload/unload modules/plugins]] |
189 print [[host - Commands to activate, deactivate and list virtual hosts]] | 189 print [[host - Commands to activate, deactivate and list virtual hosts]] |
190 print [[user - Commands to create and delete users, and change their passwords]] | |
190 print [[server - Uptime, version, shutting down, etc.]] | 191 print [[server - Uptime, version, shutting down, etc.]] |
191 print [[config - Reloading the configuration, etc.]] | 192 print [[config - Reloading the configuration, etc.]] |
192 print [[console - Help regarding the console itself]] | 193 print [[console - Help regarding the console itself]] |
193 elseif section == "c2s" then | 194 elseif section == "c2s" then |
194 print [[c2s:show(jid) - Show all client sessions with the specified JID (or all if no JID given)]] | 195 print [[c2s:show(jid) - Show all client sessions with the specified JID (or all if no JID given)]] |
205 print [[module:list(host) - List the modules loaded on the specified host]] | 206 print [[module:list(host) - List the modules loaded on the specified host]] |
206 elseif section == "host" then | 207 elseif section == "host" then |
207 print [[host:activate(hostname) - Activates the specified host]] | 208 print [[host:activate(hostname) - Activates the specified host]] |
208 print [[host:deactivate(hostname) - Disconnects all clients on this host and deactivates]] | 209 print [[host:deactivate(hostname) - Disconnects all clients on this host and deactivates]] |
209 print [[host:list() - List the currently-activated hosts]] | 210 print [[host:list() - List the currently-activated hosts]] |
211 elseif section == "user" then | |
212 print [[user:create(jid, password) - Create the specified user account]] | |
213 print [[user:password(jid, password) - Set the password for the specified user account]] | |
214 print [[user:delete(jid, password) - Permanently remove the specified user account]] | |
210 elseif section == "server" then | 215 elseif section == "server" then |
211 print [[server:version() - Show the server's version number]] | 216 print [[server:version() - Show the server's version number]] |
212 print [[server:uptime() - Show how long the server has been running]] | 217 print [[server:uptime() - Show how long the server has been running]] |
213 print [[server:shutdown(reason) - Shut down the server, with an optional reason to be broadcast to all connections]] | 218 print [[server:shutdown(reason) - Shut down the server, with an optional reason to be broadcast to all connections]] |
214 elseif section == "config" then | 219 elseif section == "config" then |