From: Alexander Barton Date: Tue, 19 Jan 2010 18:20:56 +0000 (+0100) Subject: Quote received messages of ERROR commands in log output X-Git-Tag: rel-16-rc1~9 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=commitdiff_plain;h=e1de769ab9958f6debbd884a1555de09d1191d32 Quote received messages of ERROR commands in log output --- diff --git a/src/ngircd/irc.c b/src/ngircd/irc.c index 2466b6bf..67ad2a63 100644 --- a/src/ngircd/irc.c +++ b/src/ngircd/irc.c @@ -53,8 +53,12 @@ IRC_ERROR( CLIENT *Client, REQUEST *Req ) assert( Client != NULL ); assert( Req != NULL ); - if( Req->argc < 1 ) Log( LOG_NOTICE, "Got ERROR from \"%s\"!", Client_Mask( Client )); - else Log( LOG_NOTICE, "Got ERROR from \"%s\": %s!", Client_Mask( Client ), Req->argv[0] ); + if (Req->argc < 1) + Log(LOG_NOTICE, "Got ERROR from \"%s\"!", + Client_Mask(Client)); + else + Log(LOG_NOTICE, "Got ERROR from \"%s\": \"%s\"!", + Client_Mask(Client), Req->argv[0]); return CONNECTED; } /* IRC_ERROR */