mirror of
https://github.com/anope/anope.git
synced 2026-06-26 03:06:38 +02:00
Duplicate check some of these larger hashmaps on insert, just incase
This commit is contained in:
@@ -37,7 +37,10 @@ NickCore::NickCore(const Anope::string &coredisplay) : Serializable("NickCore"),
|
||||
if (Config->NSDefFlags.HasFlag(static_cast<NickCoreFlag>(t)))
|
||||
this->SetFlag(static_cast<NickCoreFlag>(t));
|
||||
|
||||
size_t old = NickCoreList->size();
|
||||
(*NickCoreList)[this->display] = this;
|
||||
if (old == NickCoreList->size())
|
||||
Log(LOG_DEBUG) << "Duplicate account " << coredisplay << " in nickcore table?";
|
||||
}
|
||||
|
||||
/** Default destructor
|
||||
|
||||
Reference in New Issue
Block a user