diff options
Diffstat (limited to 'OpenSim/Grid/UserServer/UserManager.cs')
-rw-r--r-- | OpenSim/Grid/UserServer/UserManager.cs | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/OpenSim/Grid/UserServer/UserManager.cs b/OpenSim/Grid/UserServer/UserManager.cs index 2b2bf72..96cdfb3 100644 --- a/OpenSim/Grid/UserServer/UserManager.cs +++ b/OpenSim/Grid/UserServer/UserManager.cs | |||
@@ -27,12 +27,10 @@ | |||
27 | */ | 27 | */ |
28 | using System; | 28 | using System; |
29 | using System.Collections; | 29 | using System.Collections; |
30 | using System.Net; | 30 | using libsecondlife; |
31 | using Nwc.XmlRpc; | 31 | using Nwc.XmlRpc; |
32 | using OpenSim.Framework; | 32 | using OpenSim.Framework; |
33 | using OpenSim.Framework.UserManagement; | 33 | using OpenSim.Framework.UserManagement; |
34 | using OpenSim.Framework; | ||
35 | using libsecondlife; | ||
36 | 34 | ||
37 | namespace OpenSim.Grid.UserServer | 35 | namespace OpenSim.Grid.UserServer |
38 | { | 36 | { |
@@ -118,11 +116,11 @@ namespace OpenSim.Grid.UserServer | |||
118 | public XmlRpcResponse XmlRPCGetUserMethodName(XmlRpcRequest request) | 116 | public XmlRpcResponse XmlRPCGetUserMethodName(XmlRpcRequest request) |
119 | { | 117 | { |
120 | XmlRpcResponse response = new XmlRpcResponse(); | 118 | XmlRpcResponse response = new XmlRpcResponse(); |
121 | Hashtable requestData = (Hashtable)request.Params[0]; | 119 | Hashtable requestData = (Hashtable) request.Params[0]; |
122 | UserProfileData userProfile; | 120 | UserProfileData userProfile; |
123 | if (requestData.Contains("avatar_name")) | 121 | if (requestData.Contains("avatar_name")) |
124 | { | 122 | { |
125 | userProfile = GetUserProfile((string)requestData["avatar_name"]); | 123 | userProfile = GetUserProfile((string) requestData["avatar_name"]); |
126 | if (userProfile == null) | 124 | if (userProfile == null) |
127 | { | 125 | { |
128 | return CreateUnknownUserErrorResponse(); | 126 | return CreateUnknownUserErrorResponse(); |
@@ -139,12 +137,12 @@ namespace OpenSim.Grid.UserServer | |||
139 | public XmlRpcResponse XmlRPCGetUserMethodUUID(XmlRpcRequest request) | 137 | public XmlRpcResponse XmlRPCGetUserMethodUUID(XmlRpcRequest request) |
140 | { | 138 | { |
141 | XmlRpcResponse response = new XmlRpcResponse(); | 139 | XmlRpcResponse response = new XmlRpcResponse(); |
142 | Hashtable requestData = (Hashtable)request.Params[0]; | 140 | Hashtable requestData = (Hashtable) request.Params[0]; |
143 | UserProfileData userProfile; | 141 | UserProfileData userProfile; |
144 | System.Console.WriteLine("METHOD BY UUID CALLED"); | 142 | Console.WriteLine("METHOD BY UUID CALLED"); |
145 | if (requestData.Contains("avatar_uuid")) | 143 | if (requestData.Contains("avatar_uuid")) |
146 | { | 144 | { |
147 | userProfile = GetUserProfile((LLUUID)(string)requestData["avatar_uuid"]); | 145 | userProfile = GetUserProfile((LLUUID) (string) requestData["avatar_uuid"]); |
148 | if (userProfile == null) | 146 | if (userProfile == null) |
149 | { | 147 | { |
150 | return CreateUnknownUserErrorResponse(); | 148 | return CreateUnknownUserErrorResponse(); |
@@ -158,6 +156,7 @@ namespace OpenSim.Grid.UserServer | |||
158 | 156 | ||
159 | return ProfileToXmlRPCResponse(userProfile); | 157 | return ProfileToXmlRPCResponse(userProfile); |
160 | } | 158 | } |
159 | |||
161 | #endregion | 160 | #endregion |
162 | 161 | ||
163 | public override UserProfileData SetupMasterUser(string firstName, string lastName) | 162 | public override UserProfileData SetupMasterUser(string firstName, string lastName) |
@@ -170,4 +169,4 @@ namespace OpenSim.Grid.UserServer | |||
170 | throw new Exception("The method or operation is not implemented."); | 169 | throw new Exception("The method or operation is not implemented."); |
171 | } | 170 | } |
172 | } | 171 | } |
173 | } | 172 | } \ No newline at end of file |