about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2010-01-19 19:20:56 +0100
committerAlexander Barton <alex@barton.de>2010-01-19 19:20:56 +0100
commite1de769ab9958f6debbd884a1555de09d1191d32 (patch)
treef5b4d8c127e09a3779c9cea2b80443b44e0c460e
parent9f58418765576950983b4a95c4f5f71f068f424f (diff)
downloadngircd-e1de769ab9958f6debbd884a1555de09d1191d32.tar.gz
ngircd-e1de769ab9958f6debbd884a1555de09d1191d32.zip
Quote received messages of ERROR commands in log output
-rw-r--r--src/ngircd/irc.c8
1 files changed, 6 insertions, 2 deletions
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 */