summaryrefslogtreecommitdiff
path: root/testing/toxic/prompt.c
diff options
context:
space:
mode:
Diffstat (limited to 'testing/toxic/prompt.c')
-rw-r--r--testing/toxic/prompt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/toxic/prompt.c b/testing/toxic/prompt.c
index d79d061f..0bdf69fb 100644
--- a/testing/toxic/prompt.c
+++ b/testing/toxic/prompt.c
@@ -291,7 +291,7 @@ static void execute(ToxWindow *self, char *u_cmd)
291 } 291 }
292 msg[0] = 0; 292 msg[0] = 0;
293 msg++; 293 msg++;
294 if (m_sendmessage(atoi(id), (uint8_t*) msg, strlen(msg)+1) < 0) 294 if (m_sendmessage(atoi(id), (uint8_t*) msg, strlen(msg)+1) == 0)
295 wprintw(self->window, "Error occurred while sending message.\n"); 295 wprintw(self->window, "Error occurred while sending message.\n");
296 else 296 else
297 wprintw(self->window, "Message successfully sent.\n"); 297 wprintw(self->window, "Message successfully sent.\n");
@@ -372,7 +372,7 @@ static void print_usage(ToxWindow *self)
372 wprintw(self->window, " myid : Print your ID\n"); 372 wprintw(self->window, " myid : Print your ID\n");
373 wprintw(self->window, " quit/exit : Exit program\n"); 373 wprintw(self->window, " quit/exit : Exit program\n");
374 wprintw(self->window, " help : Print this message again\n"); 374 wprintw(self->window, " help : Print this message again\n");
375 wprintw(self->window, " clear : Clear this window\n"); 375 wprintw(self->window, " clear : Clear this window\n");
376 376
377 wattron(self->window, A_BOLD); 377 wattron(self->window, A_BOLD);
378 wprintw(self->window, "TIP: Use the TAB key to navigate through the tabs.\n\n"); 378 wprintw(self->window, "TIP: Use the TAB key to navigate through the tabs.\n\n");