Software /
code /
prosody
Comparison
plugins/mod_console.lua @ 2009:3f9cce29c57d
mod_console: Added help text for config:reload().
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sun, 18 Oct 2009 18:01:13 +0500 |
parent | 2007:b89d61db74d1 |
child | 2010:1a4f14ea39b6 |
comparison
equal
deleted
inserted
replaced
2008:6b6b924ee558 | 2009:3f9cce29c57d |
---|---|
168 print [[]] | 168 print [[]] |
169 print [[c2s - Commands to manage local client-to-server sessions]] | 169 print [[c2s - Commands to manage local client-to-server sessions]] |
170 print [[s2s - Commands to manage sessions between this server and others]] | 170 print [[s2s - Commands to manage sessions between this server and others]] |
171 print [[module - Commands to load/reload/unload modules/plugins]] | 171 print [[module - Commands to load/reload/unload modules/plugins]] |
172 print [[server - Uptime, version, shutting down, etc.]] | 172 print [[server - Uptime, version, shutting down, etc.]] |
173 print [[config - Reloading the configuration, etc.]] | |
173 print [[console - Help regarding the console itself]] | 174 print [[console - Help regarding the console itself]] |
174 elseif section == "c2s" then | 175 elseif section == "c2s" then |
175 print [[c2s:show(jid) - Show all client sessions with the specified JID (or all if no JID given)]] | 176 print [[c2s:show(jid) - Show all client sessions with the specified JID (or all if no JID given)]] |
176 print [[c2s:show_insecure() - Show all unencrypted client connections]] | 177 print [[c2s:show_insecure() - Show all unencrypted client connections]] |
177 print [[c2s:show_secure() - Show all encrypted client connections]] | 178 print [[c2s:show_secure() - Show all encrypted client connections]] |
186 print [[module:list(host) - List the modules loaded on the specified host]] | 187 print [[module:list(host) - List the modules loaded on the specified host]] |
187 elseif section == "server" then | 188 elseif section == "server" then |
188 print [[server:version() - Show the server's version number]] | 189 print [[server:version() - Show the server's version number]] |
189 print [[server:uptime() - Show how long the server has been running]] | 190 print [[server:uptime() - Show how long the server has been running]] |
190 --print [[server:shutdown(reason) - Shut down the server, with an optional reason to be broadcast to all connections]] | 191 --print [[server:shutdown(reason) - Shut down the server, with an optional reason to be broadcast to all connections]] |
192 elseif section == "config" then | |
193 print [[config:reload() - Reload the server configuration. Modules may need to be reloaded for changes to take effect.]] | |
191 elseif section == "console" then | 194 elseif section == "console" then |
192 print [[Hey! Welcome to Prosody's admin console.]] | 195 print [[Hey! Welcome to Prosody's admin console.]] |
193 print [[First thing, if you're ever wondering how to get out, simply type 'quit'.]] | 196 print [[First thing, if you're ever wondering how to get out, simply type 'quit'.]] |
194 print [[Secondly, note that we don't support the full telnet protocol yet (it's coming)]] | 197 print [[Secondly, note that we don't support the full telnet protocol yet (it's coming)]] |
195 print [[so you may have trouble using the arrow keys, etc. depending on your system.]] | 198 print [[so you may have trouble using the arrow keys, etc. depending on your system.]] |