From 7de058ba352c4a4d16c5e3b7fca56ea5b612ca2c Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 22 Jan 2013 00:21:20 -0500 Subject: [PATCH] Fix crash trying to unset the permanent channel mode during channel syncs of empty channels --- src/channels.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;