1
0
mirror of https://github.com/anope/anope.git synced 2026-07-03 22:43:13 +02:00

Remove duplicate objects from corrupt databases on database write.

This commit is contained in:
Sadie Powell
2026-04-23 18:13:20 +01:00
parent 9b8570a2ee
commit 6c7977f239
7 changed files with 38 additions and 4 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ NickAlias::NickAlias(const Anope::string &nickname, NickCore *nickcore)
if (this->nick.equals_ci(nickcore->display))
nickcore->na = this;
if (!NickAliasList->insert_or_assign(this->nick, this).second)
if (!this->InsertUnique(*NickAliasList, this->nick))
Log(LOG_DEBUG) << "Duplicate nick " << this->nick << " in NickAlias table";
if (this->nc->o == NULL)