mirror of
https://github.com/anope/anope.git
synced 2026-06-26 10:56:38 +02:00
I haven't a clue why this was here but its not even remotely right.. fixes #1448
This commit is contained in:
@@ -106,9 +106,12 @@ class DBMySQL : public Module, public Pipe
|
||||
this->RunQueryResult(create[i]);
|
||||
|
||||
SQLResult res = this->RunQueryResult(this->SQL->BuildInsert(this->prefix + s_type->GetName(), obj->id, data));
|
||||
if (res.GetID() > 0)
|
||||
if (obj->id != res.GetID())
|
||||
{
|
||||
/* In this case obj is new, so place it into the object map */
|
||||
obj->id = res.GetID();
|
||||
s_type->objects.erase(obj->id);
|
||||
s_type->objects[obj->id] = obj;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user