summaryrefslogtreecommitdiff
path: root/src/core/cs_akick.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/cs_akick.c')
-rw-r--r--src/core/cs_akick.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/cs_akick.c b/src/core/cs_akick.c
index 64e864dc1..4afad1279 100644
--- a/src/core/cs_akick.c
+++ b/src/core/cs_akick.c
@@ -186,7 +186,7 @@ class CommandCSAKick : public Command
reason = params[3].c_str();
}
- ChannelInfo *ci;
+ ChannelInfo *ci = cs_findchan(chan);
AutoKick *akick;
int i;
Channel *c;
@@ -201,8 +201,6 @@ class CommandCSAKick : public Command
|| !stricmp(cmd, "DEL")))) {
syntax_error(s_ChanServ, u, "AKICK", CHAN_AKICK_SYNTAX);
- } else if (!(ci = cs_findchan(chan))) {
- notice_lang(s_ChanServ, u, CHAN_X_NOT_REGISTERED, chan);
} else if (!check_access(u, ci, CA_AKICK) && !u->nc->HasPriv("chanserv/access/change"))
{
notice_lang(s_ChanServ, u, ACCESS_DENIED);