From bd8e4a8892e204e2d9e7e24087f7200c16be57f0 Mon Sep 17 00:00:00 2001
From: Justin Clarke Casey
Date: Wed, 22 Apr 2009 23:04:32 +0000
Subject: * Fix hypergrid standalone login by overriding AddNewUserAgent in
HGUserServices
---
.../Communications/Hypergrid/HGUserServices.cs | 21 ++++++++-------------
1 file changed, 8 insertions(+), 13 deletions(-)
(limited to 'OpenSim/Region/Communications/Hypergrid')
diff --git a/OpenSim/Region/Communications/Hypergrid/HGUserServices.cs b/OpenSim/Region/Communications/Hypergrid/HGUserServices.cs
index 93d5434..8d9ca34 100644
--- a/OpenSim/Region/Communications/Hypergrid/HGUserServices.cs
+++ b/OpenSim/Region/Communications/Hypergrid/HGUserServices.cs
@@ -62,12 +62,15 @@ namespace OpenSim.Region.Communications.Hypergrid
{
m_localUserServices = local;
}
+
+ public override bool AddUserAgent(UserAgentData agentdata)
+ {
+ if (m_localUserServices != null)
+ return m_localUserServices.AddUserAgent(agentdata);
+
+ return base.AddUserAgent(agentdata);
+ }
- ///
- /// Get a user agent from the user server
- ///
- ///
- /// null if the request fails
public override UserAgentData GetAgentByUUID(UUID userId)
{
string url = string.Empty;
@@ -77,14 +80,6 @@ namespace OpenSim.Region.Communications.Hypergrid
return base.GetAgentByUUID(userId);
}
- ///
- /// Logs off a user on the user server
- ///
- /// UUID of the user
- /// UUID of the Region
- /// regionhandle
- /// final position
- /// final lookat
public override void LogOffUser(UUID userid, UUID regionid, ulong regionhandle, Vector3 position, Vector3 lookat)
{
string url = string.Empty;
--
cgit v1.1