diff options
author | Melanie Thielker | 2009-02-09 16:34:21 +0000 |
---|---|---|
committer | Melanie Thielker | 2009-02-09 16:34:21 +0000 |
commit | 2fe9915951f19c0209b8e6e6a1e14f9e3d7b8028 (patch) | |
tree | 3968f9f6fcf266d8157521001aefa3f28dfbb666 /OpenSim/Region/Application/OpenSim.cs | |
parent | Correct a delegate in OpenSim.cs (diff) | |
download | opensim-SC-2fe9915951f19c0209b8e6e6a1e14f9e3d7b8028.zip opensim-SC-2fe9915951f19c0209b8e6e6a1e14f9e3d7b8028.tar.gz opensim-SC-2fe9915951f19c0209b8e6e6a1e14f9e3d7b8028.tar.bz2 opensim-SC-2fe9915951f19c0209b8e6e6a1e14f9e3d7b8028.tar.xz |
Reinstate the KickUserCommand handler, which was commented out by
another dev whiel I was putting the reference to it back in
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Application/OpenSim.cs | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs index fff8a81..4d3dcbb 100644 --- a/OpenSim/Region/Application/OpenSim.cs +++ b/OpenSim/Region/Application/OpenSim.cs | |||
@@ -321,32 +321,32 @@ namespace OpenSim | |||
321 | 321 | ||
322 | #region Console Commands | 322 | #region Console Commands |
323 | 323 | ||
324 | // private void KickUserCommand(string module, string[] cmdparams) | 324 | private void KickUserCommand(string module, string[] cmdparams) |
325 | // { | 325 | { |
326 | // if (cmdparams.Length < 4) | 326 | if (cmdparams.Length < 4) |
327 | // return; | 327 | return; |
328 | 328 | ||
329 | // IList agents = m_sceneManager.GetCurrentSceneAvatars(); | 329 | IList agents = m_sceneManager.GetCurrentSceneAvatars(); |
330 | 330 | ||
331 | // foreach (ScenePresence presence in agents) | 331 | foreach (ScenePresence presence in agents) |
332 | // { | 332 | { |
333 | // RegionInfo regionInfo = m_sceneManager.GetRegionInfo(presence.RegionHandle); | 333 | RegionInfo regionInfo = m_sceneManager.GetRegionInfo(presence.RegionHandle); |
334 | 334 | ||
335 | // if (presence.Firstname.ToLower().Contains(cmdparams[2].ToLower()) && presence.Lastname.ToLower().Contains(cmdparams[3].ToLower())) | 335 | if (presence.Firstname.ToLower().Contains(cmdparams[2].ToLower()) && presence.Lastname.ToLower().Contains(cmdparams[3].ToLower())) |
336 | // { | 336 | { |
337 | // m_console.Notice( | 337 | m_console.Notice( |
338 | // String.Format( | 338 | String.Format( |
339 | // "Kicking user: {0,-16}{1,-16}{2,-37} in region: {3,-16}", | 339 | "Kicking user: {0,-16}{1,-16}{2,-37} in region: {3,-16}", |
340 | // presence.Firstname, | 340 | presence.Firstname, |
341 | // presence.Lastname, | 341 | presence.Lastname, |
342 | // presence.UUID, | 342 | presence.UUID, |
343 | // regionInfo.RegionName)); | 343 | regionInfo.RegionName)); |
344 | 344 | ||
345 | // presence.Scene.IncomingCloseAgent(presence.UUID); | 345 | presence.Scene.IncomingCloseAgent(presence.UUID); |
346 | // } | 346 | } |
347 | // } | 347 | } |
348 | // m_console.Notice(""); | 348 | m_console.Notice(""); |
349 | // } | 349 | } |
350 | 350 | ||
351 | /// <summary> | 351 | /// <summary> |
352 | /// Run an optional startup list of commands | 352 | /// Run an optional startup list of commands |