diff options
Diffstat (limited to 'OpenSim/Grid/UserServer/UserManager.cs')
-rw-r--r-- | OpenSim/Grid/UserServer/UserManager.cs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/OpenSim/Grid/UserServer/UserManager.cs b/OpenSim/Grid/UserServer/UserManager.cs index 36f2a0d..5506631 100644 --- a/OpenSim/Grid/UserServer/UserManager.cs +++ b/OpenSim/Grid/UserServer/UserManager.cs | |||
@@ -156,6 +156,9 @@ namespace OpenSim.Grid.UserServer | |||
156 | responseData["home_look_x"] = profile.HomeLookAt.X.ToString(); | 156 | responseData["home_look_x"] = profile.HomeLookAt.X.ToString(); |
157 | responseData["home_look_y"] = profile.HomeLookAt.Y.ToString(); | 157 | responseData["home_look_y"] = profile.HomeLookAt.Y.ToString(); |
158 | responseData["home_look_z"] = profile.HomeLookAt.Z.ToString(); | 158 | responseData["home_look_z"] = profile.HomeLookAt.Z.ToString(); |
159 | |||
160 | responseData["user_flags"] = profile.UserFlags.ToString(); | ||
161 | responseData["god_level"] = profile.GodLevel.ToString(); | ||
159 | response.Value = responseData; | 162 | response.Value = responseData; |
160 | 163 | ||
161 | return response; | 164 | return response; |
@@ -638,6 +641,28 @@ namespace OpenSim.Grid.UserServer | |||
638 | m_log.Error("[PROFILE]:Failed to set home lookat z"); | 641 | m_log.Error("[PROFILE]:Failed to set home lookat z"); |
639 | } | 642 | } |
640 | } | 643 | } |
644 | if (requestData.Contains("user_flags")) | ||
645 | { | ||
646 | try | ||
647 | { | ||
648 | userProfile.UserFlags = Convert.ToInt32((string)requestData["user_flags"]); | ||
649 | } | ||
650 | catch (InvalidCastException) | ||
651 | { | ||
652 | m_log.Error("[PROFILE]:Failed to set user flags"); | ||
653 | } | ||
654 | } | ||
655 | if (requestData.Contains("god_level")) | ||
656 | { | ||
657 | try | ||
658 | { | ||
659 | userProfile.GodLevel = Convert.ToInt32((string)requestData["god_level"]); | ||
660 | } | ||
661 | catch (InvalidCastException) | ||
662 | { | ||
663 | m_log.Error("[PROFILE]:Failed to set god level"); | ||
664 | } | ||
665 | } | ||
641 | // call plugin! | 666 | // call plugin! |
642 | bool ret = UpdateUserProfileProperties(userProfile); | 667 | bool ret = UpdateUserProfileProperties(userProfile); |
643 | responseData["returnString"] = ret.ToString(); | 668 | responseData["returnString"] = ret.ToString(); |