Module: ngircd.git Branch: master Commit: e1de769ab9958f6debbd884a1555de09d1191d32 URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=e1de7...
Author: Alexander Barton alex@barton.de Date: Tue Jan 19 19:20:56 2010 +0100
Quote received messages of ERROR commands in log output
---
src/ngircd/irc.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/ngircd/irc.c b/src/ngircd/irc.c index 2466b6b..67ad2a6 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 */