summaryrefslogtreecommitdiff
path: root/testing/toxic/chat.c
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-08-07 13:51:58 -0400
committerirungentoo <irungentoo@gmail.com>2013-08-07 13:51:58 -0400
commit59f873fd6842634bd589640c7d63e1e0e0ecefaf (patch)
tree76370462b6c2f293d4fd1c37fa0ac1ee6b0dc68f /testing/toxic/chat.c
parent5a8da17e61f59f189a8534f75d56c0e98f9caf39 (diff)
parentc0828667e70fdd92fd01c581ce04dfc451e01860 (diff)
Merge branch 'read-receipt' of https://github.com/stal888/ProjectTox-Core into pull-requests
Conflicts: testing/toxic/chat.c testing/toxic/prompt.c
Diffstat (limited to 'testing/toxic/chat.c')
-rw-r--r--testing/toxic/chat.c2
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));