summaryrefslogtreecommitdiff
path: root/modules/commands/cs_drop.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-09-05 18:40:34 -0400
committerAdam <Adam@anope.org>2011-09-05 18:40:34 -0400
commit7de1a7a6d1146cce4cdb218899cbe15b9cee32d8 (patch)
tree53f8a7d8dddfc72e37b404411ebe002c3aee211b /modules/commands/cs_drop.cpp
parent3815e7d61ed07ce3d06c8c8db72128ef5ceaf39c (diff)
Don't try and part service bots twice when channels drop
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 306717c69..a42c8e58e 100644
--- a/modules/commands/cs_drop.cpp
+++ b/modules/commands/cs_drop.cpp
@@ -34,15 +34,13 @@ class CommandCSDrop : public Command
return;
}
- ChannelInfo *ci = cs_findchan(params[0]);
+ ChannelInfo *ci = cs_findchan(chan);
if (ci == NULL)
{
source.Reply(CHAN_X_NOT_REGISTERED, params[0].c_str());
return;
}
- ci = cs_findchan(chan);
-
if (ci->HasFlag(CI_SUSPENDED) && !u->HasCommand("chanserv/drop"))
{
source.Reply(CHAN_X_SUSPENDED, chan.c_str());