diff options
-rw-r--r-- | OpenSim/Region/Application/OpenSimMain.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs index c4b3075..91a0f19 100644 --- a/OpenSim/Region/Application/OpenSimMain.cs +++ b/OpenSim/Region/Application/OpenSimMain.cs | |||
@@ -1132,11 +1132,15 @@ namespace OpenSim | |||
1132 | break; | 1132 | break; |
1133 | 1133 | ||
1134 | case "users": | 1134 | case "users": |
1135 | IList agents = m_sceneManager.GetCurrentSceneAvatars(); | ||
1136 | |||
1137 | m_console.Notice(String.Format("\nAgents connected: {0}\n", agents.Count)); | ||
1138 | |||
1135 | m_console.Notice( | 1139 | m_console.Notice( |
1136 | String.Format("{0,-16}{1,-16}{2,-37}{3,-16}{4,-22}{5,-16}{6,-15}", "Firstname", "Lastname", | 1140 | String.Format("{0,-16}{1,-16}{2,-37}{3,-16}{4,-22}{5,-16}{6,-15}", "Firstname", "Lastname", |
1137 | "Agent ID", "Circuit", "IP", "Region", "Status")); | 1141 | "Agent ID", "Circuit", "IP", "Region", "Status")); |
1138 | 1142 | ||
1139 | foreach (ScenePresence presence in m_sceneManager.GetCurrentSceneAvatars()) | 1143 | foreach (ScenePresence presence in agents) |
1140 | { | 1144 | { |
1141 | RegionInfo regionInfo = m_sceneManager.GetRegionInfo(presence.RegionHandle); | 1145 | RegionInfo regionInfo = m_sceneManager.GetRegionInfo(presence.RegionHandle); |
1142 | string regionName; | 1146 | string regionName; |
@@ -1172,6 +1176,8 @@ namespace OpenSim | |||
1172 | ((((ClientView)presence.ControllingClient).PacketProcessingEnabled) | 1176 | ((((ClientView)presence.ControllingClient).PacketProcessingEnabled) |
1173 | ?"Active client":"Standby client"))); | 1177 | ?"Active client":"Standby client"))); |
1174 | } | 1178 | } |
1179 | |||
1180 | m_console.Notice(""); | ||
1175 | 1181 | ||
1176 | break; | 1182 | break; |
1177 | case "modules": | 1183 | case "modules": |