Rework check for number of parameters
[ngircd-alex.git] / src / ngircd / irc-encoding.c
index 0bbe310a6b29183dd1f803915f9b17de88039ebe..97b518a063b7adbf124d3760faabaa6fc840c712 100644 (file)
@@ -48,10 +48,6 @@ IRC_CHARCONV(CLIENT *Client, REQUEST *Req)
        assert (Client != NULL);
        assert (Req != NULL);
 
-       if (Req->argc != 1)
-               return IRC_WriteErrClient(Client, ERR_NEEDMOREPARAMS_MSG,
-                                         Client_ID(Client), Req->command);
-
        strlcpy(encoding, Req->argv[0], sizeof(encoding));
        ngt_UpperStr(encoding);