1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 10:46:38 +02:00

Fixed some issues and desyncs with creating empty permanent channels on startup & dropping empty channels

This commit is contained in:
Adam
2013-05-08 20:26:45 -04:00
parent 735f0ba6cf
commit 735e234c2c
11 changed files with 56 additions and 49 deletions
+8 -1
View File
@@ -361,9 +361,16 @@ ChannelInfo::~ChannelInfo()
{
if (this->bi && this->c->FindUser(this->bi))
this->bi->Part(this->c);
/* Parting the service bot can cause the channel to go away */
if (this->c)
this->c->ci = NULL;
{
if (this->c && this->c->CheckDelete())
delete this->c;
this->c = NULL;
}
}
RegisteredChannelList->erase(this->name);