summaryrefslogtreecommitdiff
path: root/testing/toxic/chat.c
diff options
context:
space:
mode:
Diffstat (limited to 'testing/toxic/chat.c')
-rw-r--r--testing/toxic/chat.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/testing/toxic/chat.c b/testing/toxic/chat.c
index 20c01620..b870e9c2 100644
--- a/testing/toxic/chat.c
+++ b/testing/toxic/chat.c
@@ -57,7 +57,6 @@ static void chat_onMessage(ToxWindow *self, int num, uint8_t *msg, uint16_t len)
57 57
58 self->blink = true; 58 self->blink = true;
59 beep(); 59 beep();
60 flash();
61} 60}
62 61
63static void chat_onNickChange(ToxWindow *self, int num, uint8_t *nick, uint16_t len) 62static void chat_onNickChange(ToxWindow *self, int num, uint8_t *nick, uint16_t len)
@@ -121,7 +120,7 @@ static void chat_onKey(ToxWindow *self, int key)
121 wattroff(ctx->history, COLOR_PAIR(1)); 120 wattroff(ctx->history, COLOR_PAIR(1));
122 wprintw(ctx->history, "%s\n", ctx->line); 121 wprintw(ctx->history, "%s\n", ctx->line);
123 } 122 }
124 if (m_sendmessage(ctx->friendnum, (uint8_t*) ctx->line, strlen(ctx->line)+1) < 0) { 123 if (m_sendmessage(ctx->friendnum, (uint8_t*) ctx->line, strlen(ctx->line)+1) == 0) {
125 wattron(ctx->history, COLOR_PAIR(3)); 124 wattron(ctx->history, COLOR_PAIR(3));
126 wprintw(ctx->history, " * Failed to send message.\n"); 125 wprintw(ctx->history, " * Failed to send message.\n");
127 wattroff(ctx->history, COLOR_PAIR(3)); 126 wattroff(ctx->history, COLOR_PAIR(3));