ii

irc it, simple FIFO based irc client
git clone git://git.suckless.org/ii
Log | Files | Refs | README | LICENSE

commit 867ec641ec268b20d46e57d71b8c0b488b50784b
parent 6da90751305682b48f4412f2e132d2e930029e4c
Author: kai@dings.kai <unknown>
Date:   Thu, 16 Mar 2006 16:55:11 +0200

Do not write PONG answers in the logfile


Diffstat:
Mii.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ii.c b/ii.c @@ -342,7 +342,9 @@ static void proc_server_cmd(char *buf) } tokenize(&argv[TOK_CMD], TOK_LAST - TOK_CMD, cmd, ' '); - if(!strncmp("PING", argv[TOK_CMD], 5)) { + if(!strncmp("PONG", argv[TOK_CMD], 5)) { + return; + } else if(!strncmp("PING", argv[TOK_CMD], 5)) { snprintf(message, PIPE_BUF, "PONG %s\r\n", argv[TOK_TEXT]); write(irc, message, strlen(message)); return;