1
0
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:
Adam
2013-03-20 11:03:02 -05:00
parent 731912f01e
commit 6a0e4418f4
4 changed files with 11 additions and 23 deletions
+3 -1
View File
@@ -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);