diff options
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/Caps/AgentPreferencesModule.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/Caps/AgentPreferencesModule.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/AgentPreferencesModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/AgentPreferencesModule.cs index fcc260f..aabdb51 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/AgentPreferencesModule.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/AgentPreferencesModule.cs | |||
@@ -118,12 +118,13 @@ namespace OpenSim.Region.ClientStack.LindenCaps | |||
118 | 118 | ||
119 | public string UpdateAgentPreferences(string request, string path, string param, UUID agent) | 119 | public string UpdateAgentPreferences(string request, string path, string param, UUID agent) |
120 | { | 120 | { |
121 | OSDMap resp = new OSDMap(); | ||
121 | // The viewer doesn't do much with the return value, so for now, if there is no preference service, | 122 | // The viewer doesn't do much with the return value, so for now, if there is no preference service, |
122 | // we'll return a null llsd block for debugging purposes. This may change if someone knows what the | 123 | // we'll return a null llsd block for debugging purposes. This may change if someone knows what the |
123 | // correct server response would be here. | 124 | // correct server response would be here. |
124 | if (m_scenes[0].AgentPreferencesService == null) | 125 | if (m_scenes[0].AgentPreferencesService == null) |
125 | { | 126 | { |
126 | return "<llsd><undef /></llsd>"; | 127 | return OSDParser.SerializeLLSDXmlString(resp); |
127 | } | 128 | } |
128 | m_log.DebugFormat("[AgentPrefs]: UpdateAgentPreferences for {0}", agent.ToString()); | 129 | m_log.DebugFormat("[AgentPrefs]: UpdateAgentPreferences for {0}", agent.ToString()); |
129 | OSDMap req = (OSDMap)OSDParser.DeserializeLLSDXml(request); | 130 | OSDMap req = (OSDMap)OSDParser.DeserializeLLSDXml(request); |
@@ -158,7 +159,6 @@ namespace OpenSim.Region.ClientStack.LindenCaps | |||
158 | data.LanguageIsPublic = req["language_is_public"].AsBoolean(); | 159 | data.LanguageIsPublic = req["language_is_public"].AsBoolean(); |
159 | } | 160 | } |
160 | m_scenes[0].AgentPreferencesService.StoreAgentPreferences(data); | 161 | m_scenes[0].AgentPreferencesService.StoreAgentPreferences(data); |
161 | OSDMap resp = new OSDMap(); | ||
162 | OSDMap respAccessPrefs = new OSDMap(); | 162 | OSDMap respAccessPrefs = new OSDMap(); |
163 | respAccessPrefs["max"] = data.AccessPrefs; | 163 | respAccessPrefs["max"] = data.AccessPrefs; |
164 | resp["access_prefs"] = respAccessPrefs; | 164 | resp["access_prefs"] = respAccessPrefs; |