Do not write PONG answers in the logfile - ii - FIFO and filesystem based IRC client
HTML git clone git://git.codemadness.org/ii
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 867ec641ec268b20d46e57d71b8c0b488b50784b
DIR parent 6da90751305682b48f4412f2e132d2e930029e4c
HTML Author: kai@dings.kai <unknown>
Date: Thu, 16 Mar 2006 16:55:11 +0200
Do not write PONG answers in the logfile
Diffstat:
M ii.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
DIR 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;