aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Application/OpenSimMainConsole.cs36
1 files changed, 36 insertions, 0 deletions
diff --git a/OpenSim/Region/Application/OpenSimMainConsole.cs b/OpenSim/Region/Application/OpenSimMainConsole.cs
index 9350d7b..9e350d4 100644
--- a/OpenSim/Region/Application/OpenSimMainConsole.cs
+++ b/OpenSim/Region/Application/OpenSimMainConsole.cs
@@ -581,6 +581,42 @@ namespace OpenSim
581 m_assetCache.ShowState(); 581 m_assetCache.ShowState();
582 break; 582 break;
583 583
584 case "users":
585 IList agents = m_sceneManager.GetCurrentSceneAvatars();
586
587 m_console.Notice(String.Format("\nAgents connected: {0}\n", agents.Count));
588
589 m_console.Notice(
590 String.Format("{0,-16}{1,-16}{2,-37}{3,-16}", "Firstname", "Lastname",
591 "Agent ID","Region"));
592
593 foreach (ScenePresence presence in agents)
594 {
595 RegionInfo regionInfo = m_sceneManager.GetRegionInfo(presence.RegionHandle);
596 string regionName;
597 System.Net.EndPoint ep = null;
598
599 if (regionInfo == null)
600 {
601 regionName = "Unresolvable";
602 }
603 else
604 {
605 regionName = regionInfo.RegionName;
606 }
607
608 m_console.Notice(
609 String.Format(
610 "{0,-16}{1,-16}{2,-37}{3,-16}",
611 presence.Firstname,
612 presence.Lastname,
613 presence.UUID,
614 regionName));
615 }
616
617 m_console.Notice("");
618 break;
619
584 case "modules": 620 case "modules":
585 m_console.Notice("The currently loaded shared modules are:"); 621 m_console.Notice("The currently loaded shared modules are:");
586 foreach (IRegionModule module in m_moduleLoader.GetLoadedSharedModules) 622 foreach (IRegionModule module in m_moduleLoader.GetLoadedSharedModules)