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