From 53e8cd18dc013f47b8aeff86d22f5eaad80244ab Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 7 Nov 2012 21:57:31 -0500 Subject: Duplicate check some of these larger hashmaps on insert, just incase --- src/nickcore.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/nickcore.cpp') 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(t))) this->SetFlag(static_cast(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 -- cgit