mirror of
https://github.com/anope/anope.git
synced 2026-06-25 09:56:40 +02:00
Duplicate check some of these larger hashmaps on insert, just incase
This commit is contained in:
@@ -41,7 +41,10 @@ NickAlias::NickAlias(const Anope::string &nickname, NickCore* nickcore) : Serial
|
||||
this->nc = nickcore;
|
||||
nickcore->aliases.push_back(this);
|
||||
|
||||
size_t old = NickAliasList->size();
|
||||
(*NickAliasList)[this->nick] = this;
|
||||
if (old == NickAliasList->size())
|
||||
Log(LOG_DEBUG) << "Duplicate nick " << nickname << " in nickalias table";
|
||||
|
||||
if (this->nc->o == NULL)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user