X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fchannels.cpp;h=948538ff460d15162048800ceea8c77a218f5954;hb=7492344e64491cea6bbb5c9354dceb804bb908ac;hp=02a6ae30b2f609db5e09ac1780f41f02aacdd973;hpb=30610582c750b4c62f2ae74d1396c1e5d1a5d7bc;p=user%2Fhenk%2Fcode%2Finspircd.git 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));