1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-05 18:06:46 +02:00

Merge branch 'read-receipt' of https://github.com/stal888/ProjectTox-Core into pull-requests

Conflicts:
	testing/toxic/chat.c
	testing/toxic/prompt.c
This commit is contained in:
irungentoo
2013-08-07 13:51:58 -04:00
2 changed files with 3 additions and 3 deletions

View File

@ -291,7 +291,7 @@ static void execute(ToxWindow *self, char *u_cmd)
}
msg[0] = 0;
msg++;
if (m_sendmessage(atoi(id), (uint8_t*) msg, strlen(msg)+1) < 0)
if (m_sendmessage(atoi(id), (uint8_t*) msg, strlen(msg)+1) == 0)
wprintw(self->window, "Error occurred while sending message.\n");
else
wprintw(self->window, "Message successfully sent.\n");
@ -372,7 +372,7 @@ static void print_usage(ToxWindow *self)
wprintw(self->window, " myid : Print your ID\n");
wprintw(self->window, " quit/exit : Exit program\n");
wprintw(self->window, " help : Print this message again\n");
wprintw(self->window, " clear : Clear this window\n");
wprintw(self->window, " clear : Clear this window\n");
wattron(self->window, A_BOLD);
wprintw(self->window, "TIP: Use the TAB key to navigate through the tabs.\n\n");