diff --git a/OpenSim/Framework/Communications/TemporaryUserProfilePlugin.cs b/OpenSim/Framework/Communications/TemporaryUserProfilePlugin.cs index ba1479019c..2e355cd1cb 100644 --- a/OpenSim/Framework/Communications/TemporaryUserProfilePlugin.cs +++ b/OpenSim/Framework/Communications/TemporaryUserProfilePlugin.cs @@ -39,7 +39,7 @@ namespace OpenSim.Framework.Communications /// public class TemporaryUserProfilePlugin : IUserDataPlugin { - private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); + //private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); protected Dictionary m_profiles = new Dictionary(); @@ -51,7 +51,7 @@ namespace OpenSim.Framework.Communications public UserProfileData GetUserByUUID(UUID user) { - m_log.DebugFormat("[TEMP USER PROFILE]: Received request for {0}", user); + //m_log.DebugFormat("[TEMP USER PROFILE]: Received request for {0}", user); lock (m_profiles) { diff --git a/OpenSim/Framework/Communications/UserManagerBase.cs b/OpenSim/Framework/Communications/UserManagerBase.cs index 133f810a8a..50f57e11af 100644 --- a/OpenSim/Framework/Communications/UserManagerBase.cs +++ b/OpenSim/Framework/Communications/UserManagerBase.cs @@ -623,7 +623,7 @@ namespace OpenSim.Framework.Communications /// location X /// location Y /// The UUID of the created user profile. On failure, returns UUID.Zero - public UUID AddUser(string firstName, string lastName, string password, string email, uint regX, uint regY) + public virtual UUID AddUser(string firstName, string lastName, string password, string email, uint regX, uint regY) { return AddUser(firstName, lastName, password, email, regX, regY, UUID.Random()); } @@ -639,7 +639,7 @@ namespace OpenSim.Framework.Communications /// location Y /// UUID of avatar. /// The UUID of the created user profile. On failure, returns UUID.Zero - public UUID AddUser( + public virtual UUID AddUser( string firstName, string lastName, string password, string email, uint regX, uint regY, UUID SetUUID) { string md5PasswdHash = Util.Md5Hash(Util.Md5Hash(password) + ":" + String.Empty); diff --git a/OpenSim/Region/Communications/Hypergrid/HGUserServices.cs b/OpenSim/Region/Communications/Hypergrid/HGUserServices.cs index 8d9ca34229..f2fee2fc4b 100644 --- a/OpenSim/Region/Communications/Hypergrid/HGUserServices.cs +++ b/OpenSim/Region/Communications/Hypergrid/HGUserServices.cs @@ -62,6 +62,16 @@ namespace OpenSim.Region.Communications.Hypergrid { m_localUserServices = local; } + + public override UUID AddUser( + string firstName, string lastName, string password, string email, uint regX, uint regY, UUID uuid) + { + // Only valid to create users locally + if (m_localUserServices != null) + return m_localUserServices.AddUser(firstName, lastName, password, email, regX, regY, uuid); + + return UUID.Zero; + } public override bool AddUserAgent(UserAgentData agentdata) {