Revert "Allow a console command to give blank arguments ("") without the parser failing, e.g. login text """

This reverts commit 129cc49eb4.
It was causing the "alert" console command to fail.
This commit is contained in:
dahlia
2015-03-14 14:24:55 -07:00
parent fec2527e6c
commit 8b13e4e731

View File

@@ -433,10 +433,6 @@ namespace OpenSim.Framework.Console
foreach (string s in cmd)
{
// If a user puts an empty string on the console then this cannot be part of the command.
if (s == "")
break;
index++;
List<string> found = new List<string>();
@@ -447,8 +443,9 @@ namespace OpenSim.Framework.Console
{
found.Clear();
found.Add(opt);
break;
}
else if (opt.StartsWith(s))
if (opt.StartsWith(s))
{
found.Add(opt);
}