From caaa1ff8889ee8f517539dcc0f32c7b795d3c8fc Mon Sep 17 00:00:00 2001 From: irungentoo Date: Sat, 27 Jul 2013 21:33:01 -0400 Subject: [PATCH] nTox now tells you if it could not send the message. --- testing/nTox.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/testing/nTox.c b/testing/nTox.c index 2acf7e942..13e976718 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];