diff --git a/testing/nTox.c b/testing/nTox.c index 2acf7e94..13e97671 100644 --- a/testing/nTox.c +++ b/testing/nTox.c @@ -88,7 +88,9 @@ void line_eval(char lines[HISTORY][STRING_LENGTH], char *line) } } int num = atoi(numstring); - m_sendmessage(num, (uint8_t*) message, sizeof(message)); + if(m_sendmessage(num, (uint8_t*) message, sizeof(message)) != 1) { + new_lines("Error sending message."); + } } else if (line[1] == 'n') { uint8_t name[MAX_NAME_LENGTH];