Give the user some feedback about the success or failure of console login property commands

0.7.4-extended
Justin Clark-Casey (justincc) 2013-02-20 00:51:55 +00:00
parent 83ea45c567
commit baf1af2abf
1 changed files with 13 additions and 2 deletions

View File

@ -961,14 +961,25 @@ namespace OpenSim.Services.LLLoginService
// or fixing critical issues // or fixing critical issues
// //
if (cmd.Length > 2) if (cmd.Length > 2)
Int32.TryParse(cmd[2], out m_MinLoginLevel); {
if (Int32.TryParse(cmd[2], out m_MinLoginLevel))
MainConsole.Instance.OutputFormat("Set minimum login level to {0}", m_MinLoginLevel);
else
MainConsole.Instance.OutputFormat("ERROR: {0} is not a valid login level", cmd[2]);
}
break; break;
case "reset": case "reset":
m_MinLoginLevel = 0; m_MinLoginLevel = 0;
MainConsole.Instance.OutputFormat("Reset min login level to {0}", m_MinLoginLevel);
break; break;
case "text": case "text":
if (cmd.Length > 2) if (cmd.Length > 2)
{
m_WelcomeMessage = cmd[2]; m_WelcomeMessage = cmd[2];
MainConsole.Instance.OutputFormat("Login welcome message set to '{0}'", m_WelcomeMessage);
}
break; break;
} }
} }