From c2b9c7c57a690a9a6c5e0f19a3188a25ee1f183e Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Wed, 21 Feb 2024 21:35:13 +0100 Subject: [PATCH] possible loop problems fix --- src/chat/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chat/misc.c b/src/chat/misc.c index 11d1e7f..d429dcc 100644 --- a/src/chat/misc.c +++ b/src/chat/misc.c @@ -753,7 +753,7 @@ void *why2_listen_server(void *socket) if (read == NULL) continue; } - if (strncmp(read, server_uname, strlen(server_uname)) == 0 && strncmp(read + strlen(server_uname), ": code", 6) == 0) //CODE WAS SENT + if ((strncmp(read, server_uname, strlen(server_uname)) == 0 && strncmp(read + strlen(server_uname), ": code", 6) == 0) && !continuing) //CODE WAS SENT { if (strcmp(read + strlen(server_uname) + 2, WHY2_CHAT_CODE_SSQC) == 0) //SERVER BROKE UP WITH YOU {