* Fix a console issue where pressing return on some operating systems cause the console to crash and complain about 0 regex matches.

0.6.0-stable
Teravus Ovares 2008-04-23 18:41:39 +00:00
parent 4db839c3b8
commit d194f21a5d
1 changed files with 4 additions and 0 deletions

View File

@ -376,6 +376,10 @@ namespace OpenSim.Framework.Console
char[] delims = {' ', '"'};
MatchCollection matches = Extractor.Matches(cmdline);
// Get matches
if (matches.Count == 0)
return;
string cmd = matches[0].Value.Trim(delims);
string[] cmdparams = new string[matches.Count - 1];