aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorDahlia Trimble2008-06-23 09:31:08 +0000
committerDahlia Trimble2008-06-23 09:31:08 +0000
commit064a2ea4605c8eda8f9032e5185e3c754f7948f7 (patch)
tree0b8d8034213d3a335dcd155342b0b168266a7751 /OpenSim/Region
parentSet svn:ignore in LindenUDP. (diff)
downloadopensim-SC-064a2ea4605c8eda8f9032e5185e3c754f7948f7.zip
opensim-SC-064a2ea4605c8eda8f9032e5185e3c754f7948f7.tar.gz
opensim-SC-064a2ea4605c8eda8f9032e5185e3c754f7948f7.tar.bz2
opensim-SC-064a2ea4605c8eda8f9032e5185e3c754f7948f7.tar.xz
changed kickuser console command to use caseless compared substrings for first and last name parameters
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Application/OpenSim.cs8
1 files changed, 2 insertions, 6 deletions
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs
index 12977a8..714d8eb 100644
--- a/OpenSim/Region/Application/OpenSim.cs
+++ b/OpenSim/Region/Application/OpenSim.cs
@@ -149,20 +149,17 @@ namespace OpenSim
149 if (cmdparams.Length < 2) 149 if (cmdparams.Length < 2)
150 return; 150 return;
151 151
152 string firstName = cmdparams[0];
153 string lastName = cmdparams[1];
154
155 IList agents = m_sceneManager.GetCurrentSceneAvatars(); 152 IList agents = m_sceneManager.GetCurrentSceneAvatars();
156 153
157 foreach (ScenePresence presence in agents) 154 foreach (ScenePresence presence in agents)
158 { 155 {
159 RegionInfo regionInfo = m_sceneManager.GetRegionInfo(presence.RegionHandle); 156 RegionInfo regionInfo = m_sceneManager.GetRegionInfo(presence.RegionHandle);
160 157
161 if (presence.Firstname.ToLower().Equals(firstName) && presence.Lastname.ToLower().Equals(lastName)) 158 if (presence.Firstname.ToLower().Contains(cmdparams[0].ToLower()) && presence.Lastname.ToLower().Contains(cmdparams[1].ToLower()))
162 { 159 {
163 m_console.Notice( 160 m_console.Notice(
164 String.Format( 161 String.Format(
165 "Found user: {0,-16}{1,-16}{2,-37} in region: {3,-16}", 162 "Kicking user: {0,-16}{1,-16}{2,-37} in region: {3,-16}",
166 presence.Firstname, 163 presence.Firstname,
167 presence.Lastname, 164 presence.Lastname,
168 presence.UUID, 165 presence.UUID,
@@ -172,7 +169,6 @@ namespace OpenSim
172 } 169 }
173 } 170 }
174 m_console.Notice(""); 171 m_console.Notice("");
175
176 } 172 }
177 173
178 /// <summary> 174 /// <summary>