aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2014-01-11 01:22:42 +0000
committerJustin Clark-Casey (justincc)2014-01-11 01:22:42 +0000
commitb5ef585069ede68ee694c06b80f4f96068e9389f (patch)
tree39007ac09481a886ba16c60de7ce18a24c78d4e8
parentMerge branch 'justincc-master' (diff)
parentAllow Boolean nodes in XML to be specified as "0/1". AuroraSim does that. (diff)
downloadopensim-SC_OLD-b5ef585069ede68ee694c06b80f4f96068e9389f.zip
opensim-SC_OLD-b5ef585069ede68ee694c06b80f4f96068e9389f.tar.gz
opensim-SC_OLD-b5ef585069ede68ee694c06b80f4f96068e9389f.tar.bz2
opensim-SC_OLD-b5ef585069ede68ee694c06b80f4f96068e9389f.tar.xz
Merge branch 'justincc-master'
-rw-r--r--OpenSim/Framework/Util.cs4
-rw-r--r--OpenSim/Services/Connectors/Hypergrid/UserAgentServiceConnector.cs2
2 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs
index b84673b..cebba46 100644
--- a/OpenSim/Framework/Util.cs
+++ b/OpenSim/Framework/Util.cs
@@ -2072,8 +2072,10 @@ namespace OpenSim.Framework
2072 #region Xml Serialization Utilities 2072 #region Xml Serialization Utilities
2073 public static bool ReadBoolean(XmlTextReader reader) 2073 public static bool ReadBoolean(XmlTextReader reader)
2074 { 2074 {
2075 // AuroraSim uses "int" for some fields that are boolean in OpenSim, e.g. "PassCollisions". Don't fail because of this.
2075 reader.ReadStartElement(); 2076 reader.ReadStartElement();
2076 bool result = Boolean.Parse(reader.ReadContentAsString().ToLower()); 2077 string val = reader.ReadContentAsString().ToLower();
2078 bool result = val.Equals("true") || val.Equals("1");
2077 reader.ReadEndElement(); 2079 reader.ReadEndElement();
2078 2080
2079 return result; 2081 return result;
diff --git a/OpenSim/Services/Connectors/Hypergrid/UserAgentServiceConnector.cs b/OpenSim/Services/Connectors/Hypergrid/UserAgentServiceConnector.cs
index d8a3184..2511c08 100644
--- a/OpenSim/Services/Connectors/Hypergrid/UserAgentServiceConnector.cs
+++ b/OpenSim/Services/Connectors/Hypergrid/UserAgentServiceConnector.cs
@@ -557,7 +557,7 @@ namespace OpenSim.Services.Connectors.Hypergrid
557 } 557 }
558 catch 558 catch
559 { 559 {
560 m_log.DebugFormat("[USER AGENT CONNECTOR]: Unable to contact remote server {0} for GetServerURLs", m_ServerURL); 560 m_log.DebugFormat("[USER AGENT CONNECTOR]: Unable to contact remote server {0} for GetServerURLs for user {1}", m_ServerURL, userID);
561// reason = "Exception: " + e.Message; 561// reason = "Exception: " + e.Message;
562 return serverURLs; 562 return serverURLs;
563 } 563 }