1
0
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:
Adam
2013-05-18 15:46:39 -04:00
parent a3dc75c61c
commit be4a39ceb6
2 changed files with 3 additions and 3 deletions
+1 -3
View File
@@ -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
+2
View File
@@ -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);