A few bug fixes for Agent Preferences to actually work. Also added missing config for standalone.

This commit is contained in:
Diva Canto
2015-06-13 08:36:06 -07:00
parent 0fa94f222d
commit bcb8a7d7f9
5 changed files with 11 additions and 3 deletions

View File

@@ -26,6 +26,7 @@
*/
using System;
using System.Collections.Generic;
using System.Reflection;
using log4net;
using Nini.Config;
@@ -55,11 +56,12 @@ namespace OpenSim.Services.UserAccountService
public bool StoreAgentPreferences(AgentPrefs data)
{
AgentPreferencesData d = new AgentPreferencesData();
d.Data = new Dictionary<string, string>();
d.Data["PrincipalID"] = data.PrincipalID.ToString();
d.Data["AccessPrefs"] = data.AccessPrefs;
d.Data["HoverHeight"] = data.HoverHeight.ToString();
d.Data["Language"] = data.Language;
d.Data["LanguageIsPublic"] = data.LanguageIsPublic.ToString();
d.Data["LanguageIsPublic"] = (data.LanguageIsPublic ? "1" : "0");
d.Data["PermEveryone"] = data.PermEveryone.ToString();
d.Data["PermGroup"] = data.PermGroup.ToString();
d.Data["PermNextOwner"] = data.PermNextOwner.ToString();