mirror of
https://github.com/anope/anope.git
synced 2026-07-09 22:03:12 +02:00
Don't try and part service bots twice when channels drop
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user