- Enforced no user or agent with UUID 0 on agent DB insertion

This commit is contained in:
Sean Dague
2008-10-16 15:57:59 +00:00
parent 9a200da0d2
commit 72725a0894
3 changed files with 12 additions and 8 deletions

View File

@@ -617,6 +617,10 @@ namespace OpenSim.Data.MySQL
/// <param name="agent">The agent to create</param>
public override void AddNewUserAgent(UserAgentData agent)
{
UUID zero = UUID.Zero;
if (agent.ProfileID == zero || agent.SessionID == zero)
return;
MySQLSuperManager dbm = GetLockedConnection();
try
{