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:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user