aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/GridService/HypergridLinker.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Services/GridService/HypergridLinker.cs')
-rw-r--r--OpenSim/Services/GridService/HypergridLinker.cs42
1 files changed, 21 insertions, 21 deletions
diff --git a/OpenSim/Services/GridService/HypergridLinker.cs b/OpenSim/Services/GridService/HypergridLinker.cs
index 23f0004..1f53007 100644
--- a/OpenSim/Services/GridService/HypergridLinker.cs
+++ b/OpenSim/Services/GridService/HypergridLinker.cs
@@ -378,28 +378,28 @@ namespace OpenSim.Services.GridService
378 378
379 public void HandleShow(string module, string[] cmd) 379 public void HandleShow(string module, string[] cmd)
380 { 380 {
381 if (cmd.Length != 2) 381 if (cmd.Length != 2)
382 { 382 {
383 MainConsole.Instance.Output("Syntax: show hyperlinks"); 383 MainConsole.Instance.Output("Syntax: show hyperlinks");
384 return; 384 return;
385 }
386 List<RegionData> regions = m_Database.GetHyperlinks(UUID.Zero);
387 if (regions == null || regions.Count < 1)
388 {
389 MainConsole.Instance.Output("No hyperlinks");
390 return;
391 }
392
393 MainConsole.Instance.Output("Region Name Region UUID");
394 MainConsole.Instance.Output("Location URI");
395 MainConsole.Instance.Output("-------------------------------------------------------------------------------");
396 foreach (RegionData r in regions)
397 {
398 MainConsole.Instance.Output(String.Format("{0,-39} {1}\n{2,-39} {3}\n",
399 r.RegionName, r.RegionID,
400 String.Format("{0},{1} ({2},{3})", r.posX, r.posY, r.posX / 256, r.posY / 256),
401 "http://" + r.Data["serverIP"].ToString() + ":" + r.Data["serverHttpPort"].ToString()));
385 } 402 }
386 List<RegionData> regions = m_Database.GetHyperlinks(UUID.Zero);
387 if (regions == null || regions.Count < 1)
388 {
389 MainConsole.Instance.Output("No hyperlinks");
390 return;
391 }
392
393 MainConsole.Instance.Output("Region Name Region UUID");
394 MainConsole.Instance.Output("Location URI");
395 MainConsole.Instance.Output("-------------------------------------------------------------------------------");
396 foreach (RegionData r in regions)
397 {
398 MainConsole.Instance.Output(String.Format("{0,-39} {1}\n{2,-39} {3}\n",
399 r.RegionName, r.RegionID,
400 String.Format("{0},{1} ({2},{3})", r.posX, r.posY, r.posX / 256, r.posY / 256),
401 "http://" + r.Data["serverIP"].ToString() + ":" + r.Data["serverHttpPort"].ToString()));
402 }
403 return; 403 return;
404 } 404 }
405 405