aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/GridService/HypergridLinker.cs
diff options
context:
space:
mode:
authorDiva Canto2010-07-31 16:40:58 -0700
committerDiva Canto2010-07-31 16:40:58 -0700
commitc4ecbd1fb1ce5450b66a7de41a0e34cc3474e04a (patch)
tree0bdf9adcb49a5de2779bc2dee7c62027d3830c89 /OpenSim/Services/GridService/HypergridLinker.cs
parentImplemented console command "show hyperlinks". (diff)
downloadopensim-SC_OLD-c4ecbd1fb1ce5450b66a7de41a0e34cc3474e04a.zip
opensim-SC_OLD-c4ecbd1fb1ce5450b66a7de41a0e34cc3474e04a.tar.gz
opensim-SC_OLD-c4ecbd1fb1ce5450b66a7de41a0e34cc3474e04a.tar.bz2
opensim-SC_OLD-c4ecbd1fb1ce5450b66a7de41a0e34cc3474e04a.tar.xz
White space from previous commit.
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