]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/channels.cpp
Add new cross-module event system
[user/henk/code/inspircd.git] / src / channels.cpp
index 02a6ae30b2f609db5e09ac1780f41f02aacdd973..948538ff460d15162048800ceea8c77a218f5954 100644 (file)
@@ -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));