summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-07-27 21:33:01 -0400
committerirungentoo <irungentoo@gmail.com>2013-07-27 21:33:01 -0400
commitcaaa1ff8889ee8f517539dcc0f32c7b795d3c8fc (patch)
tree3c5b0faefff99f863978f686c2ff4fa3f296863b
parentdeb124f5393f8938709ac0bd5ab00082e5cb3723 (diff)
nTox now tells you if it could not send the message.
-rw-r--r--testing/nTox.c4
1 files changed, 3 insertions, 1 deletions
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)
88 } 88 }
89 } 89 }
90 int num = atoi(numstring); 90 int num = atoi(numstring);
91 m_sendmessage(num, (uint8_t*) message, sizeof(message)); 91 if(m_sendmessage(num, (uint8_t*) message, sizeof(message)) != 1) {
92 new_lines("Error sending message.");
93 }
92 } 94 }
93 else if (line[1] == 'n') { 95 else if (line[1] == 'n') {
94 uint8_t name[MAX_NAME_LENGTH]; 96 uint8_t name[MAX_NAME_LENGTH];