summaryrefslogtreecommitdiff
path: root/message.c
diff options
context:
space:
mode:
Diffstat (limited to 'message.c')
-rw-r--r--message.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/message.c b/message.c
index 97d15c8..aa0dc1c 100644
--- a/message.c
+++ b/message.c
@@ -722,6 +722,12 @@ int processservermessage(SSL *server_ssl, char *str, struct client *clients, int
debugprint(DEBUG_FULL, "Server NOTICE does not appear to be from a user, passing through.\n");
}
}
+
+ // Server PONG received? This is probably in response to our PING to see if we're still connected, discard it.
+ if (strncmp(tokens[1], "PONG", strlen(tokens[1])) == 0) {
+ debugprint(DEBUG_FULL, "Server PONG found and it is: %s with length %zd! Discarding.\n", tokens[1], strlen(tokens[1]));
+ return 1;
+ }
}
// We didn't process anything so return 0