diff options
Diffstat (limited to 'src/core/cs_clear.c')
-rw-r--r-- | src/core/cs_clear.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/cs_clear.c b/src/core/cs_clear.c index e7dfa2972..48ee0cf9d 100644 --- a/src/core/cs_clear.c +++ b/src/core/cs_clear.c @@ -41,9 +41,7 @@ class CommandCSClear : public Command Channel *c; ChannelInfo *ci; - if (!what) { - syntax_error(s_ChanServ, u, "CLEAR", CHAN_CLEAR_SYNTAX); - } else if (!(c = findchan(chan))) { + if (!(c = findchan(chan))) { notice_lang(s_ChanServ, u, CHAN_X_NOT_IN_USE, chan); } else if (!(ci = c->ci)) { notice_lang(s_ChanServ, u, CHAN_X_NOT_REGISTERED, chan); |