diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/channels.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/channels.cpp b/src/channels.cpp index 02a6ae30b..948538ff4 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -88,7 +88,7 @@ void Channel::CheckDestroy() // If the channel isn't in chanlist then it is already in the cull list, don't add it again chan_hash::iterator iter = ServerInstance->chanlist.find(this->name); - if (iter == ServerInstance->chanlist.end()) + if ((iter == ServerInstance->chanlist.end()) || (iter->second != this)) return; FOREACH_MOD(OnChannelDelete, (this)); |