]> arthur.barton.de Git - ngircd.git/blobdiff - src/ngircd/irc-encoding.c
Update #include's: remove unused and add missing ones
[ngircd.git] / src / ngircd / irc-encoding.c
index 0bbe310a6b29183dd1f803915f9b17de88039ebe..0b8e9d4b9b0e9d84561f3dbf7a5e42bdf4572d2f 100644 (file)
@@ -16,7 +16,8 @@
  * IRC encoding commands
  */
 
-#include "imp.h"
+#ifdef ICONV
+
 #include <assert.h>
 #include <string.h>
 
 #include "parse.h"
 #include "tool.h"
 
-#include "exp.h"
-#include "irc-encoding.h"
-
-#ifdef ICONV
-
 /**
  * Handler for the IRC+ "CHARCONV" command.
  *
@@ -48,10 +44,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);