mirror of
https://github.com/anope/anope.git
synced 2026-06-25 08:56:39 +02:00
db_sql: don't update objects pending creation as it duplicates it
This commit is contained in:
@@ -210,6 +210,8 @@ class DBSQL : public Module, public Pipe
|
||||
{
|
||||
if (this->shutting_down || obj->IsTSCached())
|
||||
return;
|
||||
if (obj->id == 0)
|
||||
return; /* object is pending creation */
|
||||
obj->UpdateTS();
|
||||
this->updated_items.insert(obj);
|
||||
this->Notify();
|
||||
|
||||
Reference in New Issue
Block a user