From be4a39ceb6f1abb7e558eaeb46168ef5dbbe9809 Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 18 May 2013 15:46:39 -0400 Subject: Fix desync when empty permanent channels are dropped on ircds that no have permanent channel mode --- modules/commands/cs_drop.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'modules/commands/cs_drop.cpp') diff --git a/modules/commands/cs_drop.cpp b/modules/commands/cs_drop.cpp index ade021dc1..433e35799 100644 --- a/modules/commands/cs_drop.cpp +++ b/modules/commands/cs_drop.cpp @@ -56,15 +56,13 @@ class CommandCSDrop : public Command FOREACH_MOD(I_OnChanDrop, OnChanDrop(ci)); - Channel *c = ci->c; + Reference 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 -- cgit