set HasGridUserTried on usercache of NPCs

melanie
UbitUmarov 2016-12-07 02:14:26 +00:00
parent de36092d23
commit f1c6769ca5
3 changed files with 4 additions and 4 deletions

View File

@ -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);
}
}

View File

@ -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
{

View File

@ -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.