set HasGridUserTried on usercache of NPCs
parent
de36092d23
commit
f1c6769ca5
|
@ -805,7 +805,7 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
|
|||
return !userdata.IsUnknownUser;
|
||||
}
|
||||
|
||||
public virtual void AddUser(UUID uuid, string first, string last)
|
||||
public virtual void AddUser(UUID uuid, string first, string last, bool isNPC = false)
|
||||
{
|
||||
lock(m_UserCache)
|
||||
{
|
||||
|
@ -816,7 +816,7 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
|
|||
user.FirstName = first;
|
||||
user.LastName = last;
|
||||
user.IsUnknownUser = false;
|
||||
user.HasGridUserTried = false;
|
||||
user.HasGridUserTried = isNPC;
|
||||
m_UserCache.Add(uuid, user);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3226,7 +3226,7 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
|
||||
if (sp != null && sp.PresenceType == PresenceType.Npc)
|
||||
{
|
||||
UserManagementModule.AddUser(aCircuit.AgentID, first, last);
|
||||
UserManagementModule.AddUser(aCircuit.AgentID, first, last, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -79,7 +79,7 @@ namespace OpenSim.Services.Interfaces
|
|||
/// <param name="uuid"></param>
|
||||
/// <param name="firstName"></param>
|
||||
/// <param name="lastName"></param>
|
||||
void AddUser(UUID uuid, string firstName, string lastName);
|
||||
void AddUser(UUID uuid, string first, string last, bool isNPC = false);
|
||||
|
||||
/// <summary>
|
||||
/// Add a user.
|
||||
|
|
Loading…
Reference in New Issue