aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorDan Lake2013-07-17 14:55:48 -0700
committerDan Lake2013-07-17 15:05:30 -0700
commitf64f07e7c5b115d4005462d976fb60727c6d1cd1 (patch)
tree1f7c5db6eab62bd7b2b62b7eaebd0a09dde53f15 /OpenSim
parentAttachments module only registers when enabled. This enables alternative atta... (diff)
downloadopensim-SC_OLD-f64f07e7c5b115d4005462d976fb60727c6d1cd1.zip
opensim-SC_OLD-f64f07e7c5b115d4005462d976fb60727c6d1cd1.tar.gz
opensim-SC_OLD-f64f07e7c5b115d4005462d976fb60727c6d1cd1.tar.bz2
opensim-SC_OLD-f64f07e7c5b115d4005462d976fb60727c6d1cd1.tar.xz
command line kick user now uses exact name match instead of substring search to avoid kicking the wrong user or multiple wrong users.
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/Application/OpenSim.cs5
1 files changed, 3 insertions, 2 deletions
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
423 { 423 {
424 RegionInfo regionInfo = presence.Scene.RegionInfo; 424 RegionInfo regionInfo = presence.Scene.RegionInfo;
425 425
426 if (presence.Firstname.ToLower().Contains(mainParams[2].ToLower()) && 426 if (presence.Firstname.ToLower().Equals(mainParams[2].ToLower()) &&
427 presence.Lastname.ToLower().Contains(mainParams[3].ToLower())) 427 presence.Lastname.ToLower().Equals(mainParams[3].ToLower()))
428 { 428 {
429 MainConsole.Instance.Output( 429 MainConsole.Instance.Output(
430 String.Format( 430 String.Format(
@@ -438,6 +438,7 @@ namespace OpenSim
438 presence.ControllingClient.Kick("\nThe OpenSim manager kicked you out.\n"); 438 presence.ControllingClient.Kick("\nThe OpenSim manager kicked you out.\n");
439 439
440 presence.Scene.IncomingCloseAgent(presence.UUID, force); 440 presence.Scene.IncomingCloseAgent(presence.UUID, force);
441 break;
441 } 442 }
442 } 443 }
443 444