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/channels.cpp | |
parent | ac57f41c8762050190badf1b24d67d260f869e00 (diff) |
Duplicate check some of these larger hashmaps on insert, just incase
Diffstat (limited to 'src/channels.cpp')
-rw-r--r-- | src/channels.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/channels.cpp b/src/channels.cpp index 41eceaf6e..ac7be382c 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -37,7 +37,10 @@ Channel::Channel(const Anope::string &nname, time_t ts) : Flags<ChannelFlag, 3>( this->name = nname; + size_t old = ChannelList.size(); ChannelList[this->name] = this; + if (old == ChannelList.size()) + Log(LOG_DEBUG) << "Duplicate channel " << this->name << " in table?"; this->creation_time = ts; this->server_modetime = this->chanserv_modetime = 0; |