From 04488d9d3819fd16502a095771d1513af02b7a93 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Fri, 15 Aug 2008 22:49:26 +0000 Subject: Plumb in the partner and the account title fields for profile info. --- OpenSim/Grid/UserServer/UserManager.cs | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'OpenSim/Grid/UserServer') diff --git a/OpenSim/Grid/UserServer/UserManager.cs b/OpenSim/Grid/UserServer/UserManager.cs index 5506631..b1d95da 100644 --- a/OpenSim/Grid/UserServer/UserManager.cs +++ b/OpenSim/Grid/UserServer/UserManager.cs @@ -159,6 +159,8 @@ namespace OpenSim.Grid.UserServer responseData["user_flags"] = profile.UserFlags.ToString(); responseData["god_level"] = profile.GodLevel.ToString(); + responseData["custom_type"] = profile.CustomType.ToString(); + responseData["partner"] = profile.Partner.ToString(); response.Value = responseData; return response; @@ -663,6 +665,33 @@ namespace OpenSim.Grid.UserServer m_log.Error("[PROFILE]:Failed to set god level"); } } + if (requestData.Contains("custom_type")) + { + try + { + userProfile.CustomType = (string)requestData["custom_type"]; + } + catch (InvalidCastException) + { + m_log.Error("[PROFILE]:Failed to set custom type"); + } + } + if (requestData.Contains("partner")) + { + try + { + userProfile.Partner = new LLUUID((string)requestData["partner"]); + } + catch (InvalidCastException) + { + m_log.Error("[PROFILE]:Failed to set partner"); + } + } + else + { + userProfile.Partner = LLUUID.Zero; + } + // call plugin! bool ret = UpdateUserProfileProperties(userProfile); responseData["returnString"] = ret.ToString(); -- cgit v1.1