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.
inv-download
dahlia 2015-03-14 14:24:55 -07:00
parent fec2527e6c
commit 8b13e4e731
1 changed files with 2 additions and 5 deletions

View File

@ -433,10 +433,6 @@ namespace OpenSim.Framework.Console
foreach (string s in cmd) 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++; index++;
List<string> found = new List<string>(); List<string> found = new List<string>();
@ -447,8 +443,9 @@ namespace OpenSim.Framework.Console
{ {
found.Clear(); found.Clear();
found.Add(opt); found.Add(opt);
break;
} }
else if (opt.StartsWith(s)) if (opt.StartsWith(s))
{ {
found.Add(opt); found.Add(opt);
} }