mirror of
https://github.com/TokTok/c-toxcore
synced 2026-09-01 22:18:22 +00:00
nTox now tells you if it could not send the message.
This commit is contained in:
+3
-1
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user