diff options
author | Justin Clark-Casey (justincc) | 2013-02-20 00:51:55 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-02-20 00:51:55 +0000 |
commit | 05a0998f57437c8fc38e9876dfda5ad037ddeb5f (patch) | |
tree | bb2124958902fad9545d2eb72430e73852e7405f /OpenSim/Services | |
parent | Add information about MinLoginLevel to example ini files (diff) | |
download | opensim-SC_OLD-05a0998f57437c8fc38e9876dfda5ad037ddeb5f.zip opensim-SC_OLD-05a0998f57437c8fc38e9876dfda5ad037ddeb5f.tar.gz opensim-SC_OLD-05a0998f57437c8fc38e9876dfda5ad037ddeb5f.tar.bz2 opensim-SC_OLD-05a0998f57437c8fc38e9876dfda5ad037ddeb5f.tar.xz |
Give the user some feedback about the success or failure of console login property commands
Diffstat (limited to 'OpenSim/Services')
-rw-r--r-- | OpenSim/Services/LLLoginService/LLLoginService.cs | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/OpenSim/Services/LLLoginService/LLLoginService.cs b/OpenSim/Services/LLLoginService/LLLoginService.cs index 59fb559..5f30f84 100644 --- a/OpenSim/Services/LLLoginService/LLLoginService.cs +++ b/OpenSim/Services/LLLoginService/LLLoginService.cs | |||
@@ -961,14 +961,25 @@ namespace OpenSim.Services.LLLoginService | |||
961 | // or fixing critical issues | 961 | // or fixing critical issues |
962 | // | 962 | // |
963 | if (cmd.Length > 2) | 963 | if (cmd.Length > 2) |
964 | Int32.TryParse(cmd[2], out m_MinLoginLevel); | 964 | { |
965 | if (Int32.TryParse(cmd[2], out m_MinLoginLevel)) | ||
966 | MainConsole.Instance.OutputFormat("Set minimum login level to {0}", m_MinLoginLevel); | ||
967 | else | ||
968 | MainConsole.Instance.OutputFormat("ERROR: {0} is not a valid login level", cmd[2]); | ||
969 | } | ||
965 | break; | 970 | break; |
966 | case "reset": | 971 | |
972 | case "reset": | ||
967 | m_MinLoginLevel = 0; | 973 | m_MinLoginLevel = 0; |
974 | MainConsole.Instance.OutputFormat("Reset min login level to {0}", m_MinLoginLevel); | ||
968 | break; | 975 | break; |
976 | |||
969 | case "text": | 977 | case "text": |
970 | if (cmd.Length > 2) | 978 | if (cmd.Length > 2) |
979 | { | ||
971 | m_WelcomeMessage = cmd[2]; | 980 | m_WelcomeMessage = cmd[2]; |
981 | MainConsole.Instance.OutputFormat("Login welcome message set to '{0}'", m_WelcomeMessage); | ||
982 | } | ||
972 | break; | 983 | break; |
973 | } | 984 | } |
974 | } | 985 | } |