From f64f07e7c5b115d4005462d976fb60727c6d1cd1 Mon Sep 17 00:00:00 2001 From: Dan Lake Date: Wed, 17 Jul 2013 14:55:48 -0700 Subject: command line kick user now uses exact name match instead of substring search to avoid kicking the wrong user or multiple wrong users. --- OpenSim/Region/Application/OpenSim.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs index 6ff7f01..b071df8 100644 --- a/OpenSim/Region/Application/OpenSim.cs +++ b/OpenSim/Region/Application/OpenSim.cs @@ -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; } } -- cgit v1.1