summaryrefslogtreecommitdiff
path: root/modules/commands/cs_drop.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-05-18 15:46:39 -0400
committerAdam <Adam@anope.org>2013-05-18 15:47:26 -0400
commitbe4a39ceb6f1abb7e558eaeb46168ef5dbbe9809 (patch)
treedd6c79191e0ec9d530c48a82801d66110e2a8249 /modules/commands/cs_drop.cpp
parenta3dc75c61ca690eee66aea77522103952dddc8e5 (diff)
Fix desync when empty permanent channels are dropped on ircds that no have permanent channel mode
Diffstat (limited to 'modules/commands/cs_drop.cpp')
-rw-r--r--modules/commands/cs_drop.cpp4
1 files changed, 1 insertions, 3 deletions
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<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