ii

git clone https://orangeshoelaces.net/git/ii.git

867ec641ec268b20d46e57d71b8c0b488b50784b

Author: kai@dings.kai on 03/16/2006

Committer: kai@dings.kai on 03/16/2006

Do not write PONG answers in the logfile

Stats

ii.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

Patch

diff --git a/ii.c b/ii.c
index 4e12138..4698e87 100644
--- 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;