diff options
author | Adam <Adam@anope.org> | 2012-11-07 21:57:31 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-11-07 21:57:31 -0500 |
commit | 53e8cd18dc013f47b8aeff86d22f5eaad80244ab (patch) | |
tree | 44dba3103a9583288d810270db8e6c560c77fd44 /src/nickcore.cpp | |
parent | ac57f41c8762050190badf1b24d67d260f869e00 (diff) |
Duplicate check some of these larger hashmaps on insert, just incase
Diffstat (limited to 'src/nickcore.cpp')
-rw-r--r-- | src/nickcore.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nickcore.cpp b/src/nickcore.cpp index 71d117de1..0e637d0cf 100644 --- a/src/nickcore.cpp +++ b/src/nickcore.cpp @@ -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 |