comparison plugins/mod_console.lua @ 2877:1edeb8fe7d14

Merge 0.6.2/waqas with 0.6.2/MattJ
author Matthew Wild <mwild1@gmail.com>
date Wed, 03 Mar 2010 22:05:05 +0000
parents 471c3acffb2a
children b7049746bd29
comparison
equal deleted inserted replaced
2813:46dfcc33ea9e 2877:1edeb8fe7d14
190 print [[module:unload(module, host) - The same, but just unloads the module from memory]] 190 print [[module:unload(module, host) - The same, but just unloads the module from memory]]
191 print [[module:list(host) - List the modules loaded on the specified host]] 191 print [[module:list(host) - List the modules loaded on the specified host]]
192 elseif section == "server" then 192 elseif section == "server" then
193 print [[server:version() - Show the server's version number]] 193 print [[server:version() - Show the server's version number]]
194 print [[server:uptime() - Show how long the server has been running]] 194 print [[server:uptime() - Show how long the server has been running]]
195 --print [[server:shutdown(reason) - Shut down the server, with an optional reason to be broadcast to all connections]] 195 print [[server:shutdown(reason) - Shut down the server, with an optional reason to be broadcast to all connections]]
196 elseif section == "config" then 196 elseif section == "config" then
197 print [[config:reload() - Reload the server configuration. Modules may need to be reloaded for changes to take effect.]] 197 print [[config:reload() - Reload the server configuration. Modules may need to be reloaded for changes to take effect.]]
198 elseif section == "console" then 198 elseif section == "console" then
199 print [[Hey! Welcome to Prosody's admin console.]] 199 print [[Hey! Welcome to Prosody's admin console.]]
200 print [[First thing, if you're ever wondering how to get out, simply type 'quit'.]] 200 print [[First thing, if you're ever wondering how to get out, simply type 'quit'.]]