repo: ngircd
action: commit
revision: 
path_from: 
revision_from: e1de769ab9958f6debbd884a1555de09d1191d32:
path_to: 
revision_to: 
git.thebackupbox.net
ngircd
git clone git://git.thebackupbox.net/ngircd
commit e1de769ab9958f6debbd884a1555de09d1191d32
Author: Alexander Barton 
Date:   Tue Jan 19 19:20:56 2010 +0100

    Quote received messages of ERROR commands in log output

diff --git a/src/ngircd/irc.c b/src/ngircd/irc.c
index 2466b6bf9e47ef9ed7c084fe0a2af93a6570cf0f..
index ..67ad2a633a16747f49511154f205e47204263e45 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 */

-----END OF PAGE-----