From 8b13e4e7315fd2736eff7963ef2d786f5913a450 Mon Sep 17 00:00:00 2001 From: dahlia Date: Sat, 14 Mar 2015 14:24:55 -0700 Subject: Revert "Allow a console command to give blank arguments ("") without the parser failing, e.g. login text """ This reverts commit 129cc49eb4d2f43cdda3804447f84bd3df397ff1. It was causing the "alert" console command to fail. --- OpenSim/Framework/Console/CommandConsole.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'OpenSim/Framework') diff --git a/OpenSim/Framework/Console/CommandConsole.cs b/OpenSim/Framework/Console/CommandConsole.cs index 23a2cc8..0f68afe 100644 --- a/OpenSim/Framework/Console/CommandConsole.cs +++ b/OpenSim/Framework/Console/CommandConsole.cs @@ -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 found = new List(); @@ -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); } -- cgit v1.1