1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-25 01:13:02 +01:00

Compare commits

..

No commits in common. "efbfa2c95c24c384e59b042d7a726f6bedb11656" and "fbdc20dfa5c4d57519fdf1199e5cc82786c0fc4a" have entirely different histories.

4 changed files with 7 additions and 17 deletions

View File

@ -0,0 +1 @@
toxme.io 1A39E7A5D5FA9CF155C751570A32E625698A60A55F6D88028F949F66144F4F25

View File

@ -1679,15 +1679,7 @@ static void groupchat_onDraw(ToxWindow *self, Tox *m)
wattron(ctx->sidebar, A_BOLD); wattron(ctx->sidebar, A_BOLD);
pthread_mutex_lock(&Winthread.lock); pthread_mutex_lock(&Winthread.lock);
if (chat->num_peers > 1) {
wprintw(ctx->sidebar, "Peers: %d\n", chat->num_peers); wprintw(ctx->sidebar, "Peers: %d\n", chat->num_peers);
} else if (tox_group_is_connected(m, self->num, NULL)) {
wprintw(ctx->sidebar, "Connecting...\n");
} else {
wprintw(ctx->sidebar, "Disconnected\n");
}
pthread_mutex_unlock(&Winthread.lock); pthread_mutex_unlock(&Winthread.lock);
wattroff(ctx->sidebar, A_BOLD); wattroff(ctx->sidebar, A_BOLD);

View File

@ -188,7 +188,6 @@ static void help_draw_global(ToxWindow *self)
wprintw(win, " /log <on> or <off> : Enable/disable logging\n"); wprintw(win, " /log <on> or <off> : Enable/disable logging\n");
wprintw(win, " /myid : Print your Tox ID\n"); wprintw(win, " /myid : Print your Tox ID\n");
wprintw(win, " /group <name> : Create a new group chat\n"); wprintw(win, " /group <name> : Create a new group chat\n");
wprintw(win, " /join <chatid> : Join a groupchat using a Chat ID\n");
#ifdef GAMES #ifdef GAMES
wprintw(win, " /game : Play a game\n"); wprintw(win, " /game : Play a game\n");
#endif /* GAMES */ #endif /* GAMES */
@ -246,10 +245,8 @@ static void help_draw_chat(ToxWindow *self)
wprintw(win, "Chat Commands:\n"); wprintw(win, "Chat Commands:\n");
wattroff(win, A_BOLD | COLOR_PAIR(RED)); wattroff(win, A_BOLD | COLOR_PAIR(RED));
wprintw(win, " /cinvite <n> : Invite contact to a conference \n"); wprintw(win, " /invite <n> : Invite contact to a conference \n");
wprintw(win, " /cjoin : Join a pending conference\n"); wprintw(win, " /join : Join a pending conference\n");
wprintw(win, " /invite <n> : Invite contact to a groupchat \n");
wprintw(win, " /gaccept <password> : Accept a pending groupchat invite\n");
wprintw(win, " /sendfile <path> : Send a file\n"); wprintw(win, " /sendfile <path> : Send a file\n");
wprintw(win, " /savefile <id> : Receive a file\n"); wprintw(win, " /savefile <id> : Receive a file\n");
wprintw(win, " /cancel <type> <id> : Cancel file transfer where type: in|out\n"); wprintw(win, " /cancel <type> <id> : Cancel file transfer where type: in|out\n");
@ -438,13 +435,13 @@ void help_onKey(ToxWindow *self, wint_t key)
#elif AUDIO #elif AUDIO
help_init_window(self, 21, 80); help_init_window(self, 21, 80);
#else #else
help_init_window(self, 13, 80); help_init_window(self, 11, 80);
#endif #endif
self->help->type = HELP_CHAT; self->help->type = HELP_CHAT;
break; break;
case L'g': case L'g':
height = 23; height = 22;
#ifdef VIDEO #ifdef VIDEO
height += 8; height += 8;
#elif AUDIO #elif AUDIO

View File

@ -365,7 +365,7 @@ on_exit:
void name_lookup(ToxWindow *self, Tox *m, const char *id_bin, const char *addr, const char *message) void name_lookup(ToxWindow *self, Tox *m, const char *id_bin, const char *addr, const char *message)
{ {
if (t_data.disabled) { if (t_data.disabled) {
line_info_add(self, false, NULL, NULL, SYS_MSG, 0, 0, "nameservers list is empty or does not exist."); line_info_add(self, false, NULL, NULL, SYS_MSG, 0, 0, "name lookups are disabled.");
return; return;
} }