aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Application/OpenSimMainConsole.cs
diff options
context:
space:
mode:
authorAdam Johnson2008-05-22 04:55:23 +0000
committerAdam Johnson2008-05-22 04:55:23 +0000
commit5bfdb8c0035d6ad5bfb32ab4c72ecf31859f55a0 (patch)
treeb16d05aaaa5de6b060165bd72f1a6637a221422a /OpenSim/Region/Application/OpenSimMainConsole.cs
parent* Prevent an error from stopping startup when decoding the sculpt mesh j2k fa... (diff)
downloadopensim-SC_OLD-5bfdb8c0035d6ad5bfb32ab4c72ecf31859f55a0.zip
opensim-SC_OLD-5bfdb8c0035d6ad5bfb32ab4c72ecf31859f55a0.tar.gz
opensim-SC_OLD-5bfdb8c0035d6ad5bfb32ab4c72ecf31859f55a0.tar.bz2
opensim-SC_OLD-5bfdb8c0035d6ad5bfb32ab4c72ecf31859f55a0.tar.xz
Adding basic show users functionality back in to console. Mantis 1212
Diffstat (limited to 'OpenSim/Region/Application/OpenSimMainConsole.cs')
-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)