summaryrefslogtreecommitdiff
path: root/src/regchannel.cpp
diff options
context:
space:
mode:
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));
}