diff options
Diffstat (limited to 'testing/toxic/chat.c')
-rw-r--r-- | testing/toxic/chat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/toxic/chat.c b/testing/toxic/chat.c index 20c01620..bd213131 100644 --- a/testing/toxic/chat.c +++ b/testing/toxic/chat.c | |||
@@ -121,7 +121,7 @@ static void chat_onKey(ToxWindow *self, int key) | |||
121 | wattroff(ctx->history, COLOR_PAIR(1)); | 121 | wattroff(ctx->history, COLOR_PAIR(1)); |
122 | wprintw(ctx->history, "%s\n", ctx->line); | 122 | wprintw(ctx->history, "%s\n", ctx->line); |
123 | } | 123 | } |
124 | if (m_sendmessage(ctx->friendnum, (uint8_t*) ctx->line, strlen(ctx->line)+1) < 0) { | 124 | if (m_sendmessage(ctx->friendnum, (uint8_t*) ctx->line, strlen(ctx->line)+1) == 0) { |
125 | wattron(ctx->history, COLOR_PAIR(3)); | 125 | wattron(ctx->history, COLOR_PAIR(3)); |
126 | wprintw(ctx->history, " * Failed to send message.\n"); | 126 | wprintw(ctx->history, " * Failed to send message.\n"); |
127 | wattroff(ctx->history, COLOR_PAIR(3)); | 127 | wattroff(ctx->history, COLOR_PAIR(3)); |