implemented trim_string in message loop
This commit is contained in:
parent
157d56ac57
commit
22282623af
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user