diff options
author | mingchen | 2007-06-28 19:09:50 +0000 |
---|---|---|
committer | mingchen | 2007-06-28 19:09:50 +0000 |
commit | fe0528b98cfc13d26ac7f1bf6bc23655be1f52e5 (patch) | |
tree | 3ec7a1b247e84add390e962a58d26ec43c29e240 /OpenSim/Region/Communications/OGS1/OGS1UserServices.cs | |
parent | enabled physics plugin flying flags. (diff) | |
download | opensim-SC-fe0528b98cfc13d26ac7f1bf6bc23655be1f52e5.zip opensim-SC-fe0528b98cfc13d26ac7f1bf6bc23655be1f52e5.tar.gz opensim-SC-fe0528b98cfc13d26ac7f1bf6bc23655be1f52e5.tar.bz2 opensim-SC-fe0528b98cfc13d26ac7f1bf6bc23655be1f52e5.tar.xz |
*Added UUIDNameRequest packet support (untested, but should work -- at least in sandbox mode)
*Various small renamings
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Communications/OGS1/OGS1UserServices.cs (renamed from OpenSim/Region/Communications/OGS1/OGSUserServices.cs) | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/OpenSim/Region/Communications/OGS1/OGSUserServices.cs b/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs index 56a7837..856c447 100644 --- a/OpenSim/Region/Communications/OGS1/OGSUserServices.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs | |||
@@ -11,16 +11,22 @@ using Nwc.XmlRpc; | |||
11 | 11 | ||
12 | namespace OpenSim.Region.Communications.OGS1 | 12 | namespace OpenSim.Region.Communications.OGS1 |
13 | { | 13 | { |
14 | public class OGSUserServices :IUserServices | 14 | public class OGS1UserServices :IUserServices |
15 | { | 15 | { |
16 | CommunicationsOGS1 m_parent; | 16 | CommunicationsOGS1 m_parent; |
17 | public OGSUserServices(CommunicationsOGS1 parent) | 17 | public OGS1UserServices(CommunicationsOGS1 parent) |
18 | { | 18 | { |
19 | m_parent = parent; | 19 | m_parent = parent; |
20 | } | 20 | } |
21 | 21 | ||
22 | public UserProfileData ConvertXMLRPCDataToUserProfile(Hashtable data) | 22 | public UserProfileData ConvertXMLRPCDataToUserProfile(Hashtable data) |
23 | { | 23 | { |
24 | if (data.Contains("error_type")) | ||
25 | { | ||
26 | Console.WriteLine("Error sent by user server when trying to get user profile: (" + data["error_type"] + "): " + data["error_desc"]); | ||
27 | return null; | ||
28 | } | ||
29 | |||
24 | UserProfileData userData = new UserProfileData(); | 30 | UserProfileData userData = new UserProfileData(); |
25 | userData.username = (string)data["firstname"]; | 31 | userData.username = (string)data["firstname"]; |
26 | userData.surname = (string)data["lastname"]; | 32 | userData.surname = (string)data["lastname"]; |