mirror of
https://github.com/opensim/opensim.git
synced 2026-08-02 23:18:34 +08:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user