1
0
mirror of https://github.com/osmarks/ngircd.git synced 2025-01-31 17:49:11 +00:00

Quote received messages of ERROR commands in log output

This commit is contained in:
Alexander Barton 2010-01-19 19:20:56 +01:00
parent 9f58418765
commit e1de769ab9

View File

@ -53,8 +53,12 @@ IRC_ERROR( CLIENT *Client, REQUEST *Req )
assert( Client != NULL ); assert( Client != NULL );
assert( Req != NULL ); assert( Req != NULL );
if( Req->argc < 1 ) Log( LOG_NOTICE, "Got ERROR from \"%s\"!", Client_Mask( Client )); if (Req->argc < 1)
else Log( LOG_NOTICE, "Got ERROR from \"%s\": %s!", Client_Mask( Client ), Req->argv[0] ); 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; return CONNECTED;
} /* IRC_ERROR */ } /* IRC_ERROR */