X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Firc-encoding.c;h=0bbe310a6b29183dd1f803915f9b17de88039ebe;hp=b1d3a697ca0b55c0e3f9bc858fe5b0c3c534d8a1;hb=4102e8fdfea33a5d8c398c98db90914c5dc29610;hpb=c9d166747d4ea161c55c765edc23e2cd3bd7dec4 diff --git a/src/ngircd/irc-encoding.c b/src/ngircd/irc-encoding.c index b1d3a697..0bbe310a 100644 --- a/src/ngircd/irc-encoding.c +++ b/src/ngircd/irc-encoding.c @@ -1,6 +1,6 @@ /* * ngIRCd -- The Next Generation IRC Daemon - * Copyright (c)2001-2012 Alexander Barton (alex@barton.de) and Contributors. + * Copyright (c)2001-2013 Alexander Barton (alex@barton.de) and Contributors. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -49,14 +49,14 @@ IRC_CHARCONV(CLIENT *Client, REQUEST *Req) assert (Req != NULL); if (Req->argc != 1) - return IRC_WriteStrClient(Client, ERR_NEEDMOREPARAMS_MSG, + return IRC_WriteErrClient(Client, ERR_NEEDMOREPARAMS_MSG, Client_ID(Client), Req->command); strlcpy(encoding, Req->argv[0], sizeof(encoding)); ngt_UpperStr(encoding); if (!Conn_SetEncoding(Client_Conn(Client), encoding)) - return IRC_WriteStrClient(Client, ERR_IP_CHARCONV_MSG, + return IRC_WriteErrClient(Client, ERR_IP_CHARCONV_MSG, Client_ID(Client), encoding); return IRC_WriteStrClient(Client, RPL_IP_CHARCONV_MSG,