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

This commit is contained in:
Teravus Ovares
2008-04-23 18:41:39 +00:00
parent 4db839c3b8
commit d194f21a5d

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];