aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/LLLoginService
diff options
context:
space:
mode:
authorMelanie2010-12-03 02:36:13 +0000
committerMelanie2010-12-03 02:36:13 +0000
commit342dc532ec64642d5997f23050a9776f663facdf (patch)
treeb0be3997967aa6e4d79873281f535ad436b841e4 /OpenSim/Services/LLLoginService
parentChange the way sim health reporting reports sim startup (diff)
parentOnly force prim persistence before delete if the prim is the result of an unp... (diff)
downloadopensim-SC_OLD-342dc532ec64642d5997f23050a9776f663facdf.zip
opensim-SC_OLD-342dc532ec64642d5997f23050a9776f663facdf.tar.gz
opensim-SC_OLD-342dc532ec64642d5997f23050a9776f663facdf.tar.bz2
opensim-SC_OLD-342dc532ec64642d5997f23050a9776f663facdf.tar.xz
Merge branch 'master' into careminster-presence-refactor
Also prevent god takes from ending up in Lost and Found
Diffstat (limited to 'OpenSim/Services/LLLoginService')
-rw-r--r--OpenSim/Services/LLLoginService/LLLoginService.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/OpenSim/Services/LLLoginService/LLLoginService.cs b/OpenSim/Services/LLLoginService/LLLoginService.cs
index b26cd6e..335c7e7 100644
--- a/OpenSim/Services/LLLoginService/LLLoginService.cs
+++ b/OpenSim/Services/LLLoginService/LLLoginService.cs
@@ -769,6 +769,7 @@ namespace OpenSim.Services.LLLoginService
769 if (account.ServiceURLs == null) 769 if (account.ServiceURLs == null)
770 return; 770 return;
771 771
772 // Old style: get the service keys from the DB
772 foreach (KeyValuePair<string, object> kvp in account.ServiceURLs) 773 foreach (KeyValuePair<string, object> kvp in account.ServiceURLs)
773 { 774 {
774 if (kvp.Value == null || (kvp.Value != null && kvp.Value.ToString() == string.Empty)) 775 if (kvp.Value == null || (kvp.Value != null && kvp.Value.ToString() == string.Empty))
@@ -780,6 +781,21 @@ namespace OpenSim.Services.LLLoginService
780 aCircuit.ServiceURLs[kvp.Key] = kvp.Value; 781 aCircuit.ServiceURLs[kvp.Key] = kvp.Value;
781 } 782 }
782 } 783 }
784
785 // New style: service keys start with SRV_; override the previous
786 string[] keys = m_LoginServerConfig.GetKeys();
787
788 if (keys.Length > 0)
789 {
790 IEnumerable<string> serviceKeys = keys.Where(value => value.StartsWith("SRV_"));
791 foreach (string serviceKey in serviceKeys)
792 {
793 string keyName = serviceKey.Replace("SRV_", "");
794 aCircuit.ServiceURLs[keyName] = m_LoginServerConfig.GetString(serviceKey, string.Empty);
795 m_log.DebugFormat("[LLLOGIN SERVICE]: found new key {0} {1}", keyName, aCircuit.ServiceURLs[keyName]);
796 }
797 }
798
783 } 799 }
784 800
785 private bool LaunchAgentDirectly(ISimulationService simConnector, GridRegion region, AgentCircuitData aCircuit, out string reason) 801 private bool LaunchAgentDirectly(ISimulationService simConnector, GridRegion region, AgentCircuitData aCircuit, out string reason)