implemented WHY2_CHAT_COMMAND_PREFIX on server-side

This commit is contained in:
Václav Šmejkal 2024-04-27 11:58:01 +02:00
parent 4134f9d1b3
commit cfa9f7bcca
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -611,7 +611,7 @@ void *why2_communicate_thread(void *arg)
} }
//IGNORE INVALID CODES, THE USER JUST GOT HIS LOBOTOMY DONE //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 //REBUILD MESSAGE WITH USERNAME
json_object_object_add(json, "message", json_object_new_string(decoded_buffer)); json_object_object_add(json, "message", json_object_new_string(decoded_buffer));