summaryrefslogtreecommitdiff
path: root/src/channels.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-01-22 00:21:20 -0500
committerAdam <Adam@anope.org>2013-01-22 00:24:58 -0500
commit7de058ba352c4a4d16c5e3b7fca56ea5b612ca2c (patch)
tree29bbe4381c8ff8fd621edbade533ad61ad81a9f2 /src/channels.cpp
parentddaa001dafb5122e6e363e4acbbe6ce045b7b104 (diff)
Fix crash trying to unset the permanent channel mode during channel syncs of empty channels
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 32fb5aea7..7fd8ab009 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -437,7 +437,7 @@ void Channel::RemoveModeInternal(MessageSource &setter, ChannelMode *cm, const A
if (this->ci)
this->ci->Shrink("PERSIST");
- if (this->users.empty())
+ if (this->users.empty() && !this->HasExt("SYNCING") && !this->HasExt("INHABIT"))
{
delete this;
return;