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:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user