1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 17:56:38 +02:00

Fix crash trying to unset the permanent channel mode during channel syncs of empty channels

This commit is contained in:
Adam
2013-01-22 00:21:20 -05:00
parent ddaa001daf
commit 7de058ba35
+1 -1
View File
@@ -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;