- 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

@@ -567,6 +567,10 @@ namespace OpenSim.Data.SQLite
/// <param name="agent">The agent to add to the database</param>
override public void AddNewUserAgent(UserAgentData agent)
{
UUID zero = UUID.Zero;
if (agent.SessionID == zero || agent.ProfileID == zero)
return;
DataTable agents = ds.Tables["useragents"];
lock (ds)
{