diff options
| author | Alexander Barton <alex@barton.de> | 2010-01-19 19:20:56 +0100 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2010-01-19 19:20:56 +0100 |
| commit | e1de769ab9958f6debbd884a1555de09d1191d32 (patch) | |
| tree | f5b4d8c127e09a3779c9cea2b80443b44e0c460e /src | |
| parent | 9f58418765576950983b4a95c4f5f71f068f424f (diff) | |
| download | ngircd-e1de769ab9958f6debbd884a1555de09d1191d32.tar.gz ngircd-e1de769ab9958f6debbd884a1555de09d1191d32.zip | |
Quote received messages of ERROR commands in log output
Diffstat (limited to 'src')
| -rw-r--r-- | 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 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 */ |