summaryrefslogtreecommitdiff
path: root/testing/toxic/chat.c
diff options
context:
space:
mode:
authorMaxim Biro <nurupo.contributions@gmail.com>2013-08-07 19:18:40 -0400
committerMaxim Biro <nurupo.contributions@gmail.com>2013-08-07 19:18:40 -0400
commitf669b28a6ca3e7a0fc2fc7d5cb8e73dacea3866f (patch)
tree9078bb4d991b17f12483b6e25a87d8600bde1df0 /testing/toxic/chat.c
parentb1a2af23e521f1b21a1013c6894987f410700496 (diff)
parent81fccf68d6ef0363599ce8ab14cf45f5f021e5d6 (diff)
Merge branch 'master' of http://github.com/irungentoo/ProjectTox-Core
Conflicts: core/Messenger.c core/Messenger.h
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 2563fa9c..28c5de6c 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));