diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/Application/OpenSim.cs | 8 |
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> |