mirror of
https://github.com/anope/anope.git
synced 2026-07-02 07:26:38 +02:00
Check that channels still exist before nulling their ci pointer in channelinfos destructor
Change the persist setting on a channel to mean only that it is being enforced ircd-side
This commit is contained in:
+3
-1
@@ -368,7 +368,9 @@ ChannelInfo::~ChannelInfo()
|
||||
{
|
||||
if (this->bi && this->c->FindUser(this->bi))
|
||||
this->bi->Part(this->c);
|
||||
this->c->ci = NULL;
|
||||
/* Parting the service bot can cause the channel to go away */
|
||||
if (this->c)
|
||||
this->c->ci = NULL;
|
||||
}
|
||||
|
||||
RegisteredChannelList->erase(this->name);
|
||||
|
||||
Reference in New Issue
Block a user