comparison plugins/mod_console.lua @ 2700:3cb04cdc0193

mod_console: Uncomment the help for server:shutdown() - thanks darkrain
author Matthew Wild <mwild1@gmail.com>
date Mon, 22 Feb 2010 01:02:16 +0000
parents d04b0eeeb954
children 692b3c6c5bd2
comparison
equal deleted inserted replaced
2696:cb5acafbec62 2700:3cb04cdc0193
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'.]]