diff options
author | Adam <Adam@anope.org> | 2013-01-22 00:21:20 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-01-22 00:24:58 -0500 |
commit | 7de058ba352c4a4d16c5e3b7fca56ea5b612ca2c (patch) | |
tree | 29bbe4381c8ff8fd621edbade533ad61ad81a9f2 /src/channels.cpp | |
parent | ddaa001dafb5122e6e363e4acbbe6ce045b7b104 (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.cpp | 2 |
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; |