aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/AgentCircuitData.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/AgentCircuitData.cs')
-rw-r--r--OpenSim/Framework/AgentCircuitData.cs25
1 files changed, 24 insertions, 1 deletions
diff --git a/OpenSim/Framework/AgentCircuitData.cs b/OpenSim/Framework/AgentCircuitData.cs
index ffcc584..acf925a 100644
--- a/OpenSim/Framework/AgentCircuitData.cs
+++ b/OpenSim/Framework/AgentCircuitData.cs
@@ -128,7 +128,30 @@ namespace OpenSim.Framework
128 /// <summary> 128 /// <summary>
129 /// Viewer's version string as reported by the viewer at login 129 /// Viewer's version string as reported by the viewer at login
130 /// </summary> 130 /// </summary>
131 public string Viewer; 131 private string ViewerInternal;
132
133 /// <summary>
134 /// Viewer's version string
135 /// </summary>
136 public string Viewer
137 {
138 set { ViewerInternal = value; }
139 // Try to return consistent viewer string taking into account
140 // that viewers have chaagned how version is reported
141 // See http://opensimulator.org/mantis/view.php?id=6851
142 get
143 {
144 // Old style version string contains viewer name followed by a space followed by a version number
145 if (ViewerInternal.Contains(" "))
146 {
147 return ViewerInternal;
148 }
149 else // New style version contains no spaces, just version number
150 {
151 return Channel + " " + ViewerInternal;
152 }
153 }
154 }
132 155
133 /// <summary> 156 /// <summary>
134 /// The channel strinf sent by the viewer at login 157 /// The channel strinf sent by the viewer at login