mirror of
https://github.com/bjc/prosody.git
synced 2025-04-07 07:07:38 +03:00
mod_admin_telnet: Fix broken indentation
This commit is contained in:
parent
6637aeffb6
commit
d7b0b8cf6c
1 changed files with 14 additions and 14 deletions
|
@ -958,8 +958,8 @@ end
|
|||
|
||||
function printbanner(session)
|
||||
local option = module:get_option("console_banner");
|
||||
if option == nil or option == "full" or option == "graphic" then
|
||||
session.print [[
|
||||
if option == nil or option == "full" or option == "graphic" then
|
||||
session.print [[
|
||||
____ \ / _
|
||||
| _ \ _ __ ___ ___ _-_ __| |_ _
|
||||
| |_) | '__/ _ \/ __|/ _ \ / _` | | | |
|
||||
|
@ -968,19 +968,19 @@ session.print [[
|
|||
A study in simplicity |___/
|
||||
|
||||
]]
|
||||
end
|
||||
if option == nil or option == "short" or option == "full" then
|
||||
session.print("Welcome to the Prosody administration console. For a list of commands, type: help");
|
||||
session.print("You may find more help on using this console in our online documentation at ");
|
||||
session.print("http://prosody.im/doc/console\n");
|
||||
end
|
||||
if option and option ~= "short" and option ~= "full" and option ~= "graphic" then
|
||||
if type(option) == "string" then
|
||||
session.print(option)
|
||||
elseif type(option) == "function" then
|
||||
module:log("warn", "Using functions as value for the console_banner option is no longer supported");
|
||||
end
|
||||
end
|
||||
if option == nil or option == "short" or option == "full" then
|
||||
session.print("Welcome to the Prosody administration console. For a list of commands, type: help");
|
||||
session.print("You may find more help on using this console in our online documentation at ");
|
||||
session.print("http://prosody.im/doc/console\n");
|
||||
end
|
||||
if option and option ~= "short" and option ~= "full" and option ~= "graphic" then
|
||||
if type(option) == "string" then
|
||||
session.print(option)
|
||||
elseif type(option) == "function" then
|
||||
module:log("warn", "Using functions as value for the console_banner option is no longer supported");
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
module:add_item("net-provider", {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue