]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Verify that the chan in chanlist is in fact the same object as us in Channel::CheckDe...
authorAttila Molnar <attilamolnar@hush.com>
Fri, 16 Jan 2015 10:01:50 +0000 (11:01 +0100)
committerAttila Molnar <attilamolnar@hush.com>
Fri, 16 Jan 2015 10:01:50 +0000 (11:01 +0100)
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));