summaryrefslogtreecommitdiff
path: root/src/channels.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-01-16 11:01:50 +0100
committerAttila Molnar <attilamolnar@hush.com>2015-01-16 11:01:50 +0100
commit4b6f7d789333dd9fd3b08f8742a68c0f9c6c2254 (patch)
tree4507e3ec9f11a8d89f89903c987859ee47dc70b3 /src/channels.cpp
parent30610582c750b4c62f2ae74d1396c1e5d1a5d7bc (diff)
Verify that the chan in chanlist is in fact the same object as us in Channel::CheckDestroy() before proceeding
Diffstat (limited to 'src/channels.cpp')
-rw-r--r--src/channels.cpp2
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));