A few bug fixes for Agent Preferences to actually work. Also added missing config for standalone.
parent
0fa94f222d
commit
bcb8a7d7f9
|
@ -118,7 +118,7 @@ namespace OpenSim.Region.ClientStack.LindenCaps
|
|||
|
||||
public string UpdateAgentPreferences(string request, string path, string param, UUID agent)
|
||||
{
|
||||
m_log.DebugFormat("[AgentPrefs] UpdateAgentPreferences for {0}", agent.ToString());
|
||||
m_log.DebugFormat("[AgentPrefs]: UpdateAgentPreferences for {0}", agent.ToString());
|
||||
OSDMap req = (OSDMap)OSDParser.DeserializeLLSDXml(request);
|
||||
AgentPrefs data = m_scenes[0].AgentPreferencesService.GetAgentPreferences(agent);
|
||||
if (data == null)
|
||||
|
|
|
@ -35,7 +35,7 @@ namespace OpenSim.Services.Interfaces
|
|||
{
|
||||
public AgentPrefs(UUID principalID)
|
||||
{
|
||||
principalID = PrincipalID;
|
||||
PrincipalID = principalID;
|
||||
}
|
||||
|
||||
public AgentPrefs(Dictionary<string, string> kvp)
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -97,6 +97,9 @@
|
|||
[Friends]
|
||||
Connector = "OpenSim.Services.FriendsService.dll"
|
||||
|
||||
[AgentPreferencesService]
|
||||
LocalServiceModule = "OpenSim.Services.UserAccountService.dll:AgentPreferencesService"
|
||||
|
||||
[LoginService]
|
||||
LocalServiceModule = "OpenSim.Services.LLLoginService.dll:LLLoginService"
|
||||
UserAccountService = "OpenSim.Services.UserAccountService.dll:UserAccountService"
|
||||
|
|
|
@ -124,6 +124,9 @@
|
|||
[Friends]
|
||||
Connector = "OpenSim.Services.FriendsService.dll"
|
||||
|
||||
[AgentPreferencesService]
|
||||
LocalServiceModule = "OpenSim.Services.UserAccountService.dll:AgentPreferencesService"
|
||||
|
||||
[LoginService]
|
||||
LocalServiceModule = "OpenSim.Services.LLLoginService.dll:LLLoginService"
|
||||
UserAccountService = "OpenSim.Services.UserAccountService.dll:UserAccountService"
|
||||
|
|
Loading…
Reference in New Issue