mirror of
https://github.com/anope/anope.git
synced 2026-06-27 03:56:37 +02:00
Fix desync when empty permanent channels are dropped on ircds that no have permanent channel mode
This commit is contained in:
@@ -56,15 +56,13 @@ class CommandCSDrop : public Command
|
||||
|
||||
FOREACH_MOD(I_OnChanDrop, OnChanDrop(ci));
|
||||
|
||||
Channel *c = ci->c;
|
||||
Reference<Channel> c = ci->c;
|
||||
delete ci;
|
||||
|
||||
source.Reply(_("Channel \002%s\002 has been dropped."), chan.c_str());
|
||||
|
||||
if (c)
|
||||
c->CheckModes();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
|
||||
|
||||
@@ -359,6 +359,8 @@ ChannelInfo::~ChannelInfo()
|
||||
|
||||
if (this->c)
|
||||
{
|
||||
this->Shrink("PERSIST");
|
||||
|
||||
if (this->bi && this->c->FindUser(this->bi))
|
||||
this->bi->Part(this->c);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user