Comparison

plugins/mod_admin_telnet.lua @ 5026:c86a14414922

mod_admin_telnet: Fix broken indentation
author Matthew Wild <mwild1@gmail.com>
date Sat, 28 Jul 2012 01:19:09 +0100
parent 5025:e68d1b85ee3a
child 5027:8394fe8a32e8
comparison
equal deleted inserted replaced
5025:e68d1b85ee3a 5026:c86a14414922
956 956
957 ------------- 957 -------------
958 958
959 function printbanner(session) 959 function printbanner(session)
960 local option = module:get_option("console_banner"); 960 local option = module:get_option("console_banner");
961 if option == nil or option == "full" or option == "graphic" then 961 if option == nil or option == "full" or option == "graphic" then
962 session.print [[ 962 session.print [[
963 ____ \ / _ 963 ____ \ / _
964 | _ \ _ __ ___ ___ _-_ __| |_ _ 964 | _ \ _ __ ___ ___ _-_ __| |_ _
965 | |_) | '__/ _ \/ __|/ _ \ / _` | | | | 965 | |_) | '__/ _ \/ __|/ _ \ / _` | | | |
966 | __/| | | (_) \__ \ |_| | (_| | |_| | 966 | __/| | | (_) \__ \ |_| | (_| | |_| |
967 |_| |_| \___/|___/\___/ \__,_|\__, | 967 |_| |_| \___/|___/\___/ \__,_|\__, |
968 A study in simplicity |___/ 968 A study in simplicity |___/
969 969
970 ]] 970 ]]
971 end 971 end
972 if option == nil or option == "short" or option == "full" then 972 if option == nil or option == "short" or option == "full" then
973 session.print("Welcome to the Prosody administration console. For a list of commands, type: help"); 973 session.print("Welcome to the Prosody administration console. For a list of commands, type: help");
974 session.print("You may find more help on using this console in our online documentation at "); 974 session.print("You may find more help on using this console in our online documentation at ");
975 session.print("http://prosody.im/doc/console\n"); 975 session.print("http://prosody.im/doc/console\n");
976 end 976 end
977 if option and option ~= "short" and option ~= "full" and option ~= "graphic" then 977 if option and option ~= "short" and option ~= "full" and option ~= "graphic" then
978 if type(option) == "string" then 978 if type(option) == "string" then
979 session.print(option) 979 session.print(option)
980 elseif type(option) == "function" then 980 elseif type(option) == "function" then
981 module:log("warn", "Using functions as value for the console_banner option is no longer supported"); 981 module:log("warn", "Using functions as value for the console_banner option is no longer supported");
982 end 982 end
983 end 983 end
984 end 984 end
985 985
986 module:add_item("net-provider", { 986 module:add_item("net-provider", {
987 name = "console"; 987 name = "console";
988 listener = console_listener; 988 listener = console_listener;