From 22282623af09faae704025e917702b184c7ac6bd Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sun, 25 Feb 2024 13:16:12 +0100 Subject: [PATCH] implemented trim_string in message loop --- src/chat/misc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/chat/misc.c b/src/chat/misc.c index 848072a..857cc43 100644 --- a/src/chat/misc.c +++ b/src/chat/misc.c @@ -623,6 +623,9 @@ void *why2_communicate_thread(void *arg) decoded_buffer = get_string_from_json_string(raw, "message"); //DECODE + //TRIM MESSAGE + trim_string(&decoded_buffer); + if (decoded_buffer != NULL && strlen(decoded_buffer) != 0) { if (decoded_buffer[0] == '!') //COMMANDS