command line kick user now uses exact name match instead of substring search to avoid kicking the wrong user or multiple wrong users.

TeleportWork
Dan Lake 2013-07-17 14:55:48 -07:00
parent 9f129938c9
commit f64f07e7c5
1 changed files with 3 additions and 2 deletions

View File

@ -423,8 +423,8 @@ namespace OpenSim
{
RegionInfo regionInfo = presence.Scene.RegionInfo;
if (presence.Firstname.ToLower().Contains(mainParams[2].ToLower()) &&
presence.Lastname.ToLower().Contains(mainParams[3].ToLower()))
if (presence.Firstname.ToLower().Equals(mainParams[2].ToLower()) &&
presence.Lastname.ToLower().Equals(mainParams[3].ToLower()))
{
MainConsole.Instance.Output(
String.Format(
@ -438,6 +438,7 @@ namespace OpenSim
presence.ControllingClient.Kick("\nThe OpenSim manager kicked you out.\n");
presence.Scene.IncomingCloseAgent(presence.UUID, force);
break;
}
}