summaryrefslogtreecommitdiff
path: root/src/regchannel.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-11-07 21:57:31 -0500
committerAdam <Adam@anope.org>2012-11-07 21:57:31 -0500
commit53e8cd18dc013f47b8aeff86d22f5eaad80244ab (patch)
tree44dba3103a9583288d810270db8e6c560c77fd44 /src/regchannel.cpp
parentac57f41c8762050190badf1b24d67d260f869e00 (diff)
Duplicate check some of these larger hashmaps on insert, just incase
Diffstat (limited to 'src/regchannel.cpp')
-rw-r--r--src/regchannel.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/regchannel.cpp b/src/regchannel.cpp
index f402b5820..a559d3127 100644
--- a/src/regchannel.cpp
+++ b/src/regchannel.cpp
@@ -266,7 +266,10 @@ ChannelInfo::ChannelInfo(const Anope::string &chname) : Serializable("ChannelInf
for (int i = 0; i < TTB_SIZE; ++i)
this->ttb[i] = 0;
+ size_t old = RegisteredChannelList->size();
(*RegisteredChannelList)[this->name] = this;
+ if (old == RegisteredChannelList->size())
+ Log(LOG_DEBUG) << "Duplicate channel " << this->name << " in registered channel table?";
FOREACH_MOD(I_OnCreateChan, OnCreateChan(this));
}