From cfa9f7bcca4b6a5ae785f58ce40ec3311f27b237 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sat, 27 Apr 2024 11:58:01 +0200 Subject: [PATCH] implemented WHY2_CHAT_COMMAND_PREFIX on server-side --- 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 0749d9d..eb71219 100644 --- a/src/chat/misc.c +++ b/src/chat/misc.c @@ -611,7 +611,7 @@ void *why2_communicate_thread(void *arg) } //IGNORE INVALID CODES, THE USER JUST GOT HIS LOBOTOMY DONE - } else if (decoded_buffer[0] != '!') //IGNORE MESSAGES BEGINNING WITH '!' + } else if (strncmp(decoded_buffer, WHY2_CHAT_COMMAND_PREFIX, strlen(WHY2_CHAT_COMMAND_PREFIX)) != 0) //IGNORE MESSAGES BEGINNING WITH '!' { //REBUILD MESSAGE WITH USERNAME json_object_object_add(json, "message", json_object_new_string(decoded_buffer));