diff --git a/src/chat.c b/src/chat.c index 27ebb29..3b0a2b0 100644 --- a/src/chat.c +++ b/src/chat.c @@ -692,8 +692,10 @@ static void chat_onKey(ToxWindow *self, Tox *m, wint_t key, bool ltr) } else { wmove(self->window, y, x + diff); } - } else beep(); - } else beep(); + } else + beep(); + } else + beep(); } else if (key == '\n') { rm_trailing_spaces_buf(ctx); @@ -726,8 +728,7 @@ static void chat_onKey(ToxWindow *self, Tox *m, wint_t key, bool ltr) line_info_add(self, timefrmt, selfname, NULL, line, OUT_MSG, 0, 0); if (!statusbar->is_online || tox_send_message(m, self->num, (uint8_t *) line, strlen(line)) == 0) { - char *errmsg = " * Failed to send message."; - line_info_add(self, NULL, NULL, NULL, errmsg, SYS_MSG, 0, RED); + line_info_add(self, NULL, NULL, NULL, " * Failed to send message.", SYS_MSG, 0, RED); } else { write_to_log(line, selfname, ctx->log, false); } diff --git a/src/chat_commands.c b/src/chat_commands.c index 8ea9c79..daf2afd 100644 --- a/src/chat_commands.c +++ b/src/chat_commands.c @@ -57,13 +57,13 @@ void cmd_groupinvite(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*a } if (tox_invite_friend(m, self->num, groupnum) == -1) { - errmsg = "Failed to invite friend."; + errmsg = "Failed to invite contact to group."; line_info_add(self, NULL, NULL, NULL, errmsg, SYS_MSG, 0, 0); return; } char msg[MAX_STR_SIZE]; - snprintf(msg, sizeof(msg), "Invited friend to Room #%d.", groupnum); + snprintf(msg, sizeof(msg), "Invited contact to Group %d.", groupnum); line_info_add(self, NULL, NULL, NULL, msg, SYS_MSG, 0, 0); } diff --git a/src/friendlist.c b/src/friendlist.c index 6e35be2..9aad1e6 100644 --- a/src/friendlist.c +++ b/src/friendlist.c @@ -377,7 +377,7 @@ static void friendlist_onDraw(ToxWindow *self, Tox *m) wattron(self->window, A_BOLD); wprintw(self->window, " Enter "); wattroff(self->window, A_BOLD); - wprintw(self->window, "key. Delete a friend with the"); + wprintw(self->window, "key. Delete a contact with the"); wattron(self->window, A_BOLD); wprintw(self->window, " Delete "); wattroff(self->window, A_BOLD); @@ -614,6 +614,6 @@ ToxWindow new_friendlist(void) ret.device_selection[0] = ret.device_selection[1] = -1; #endif /* _SUPPORT_AUDIO */ - strcpy(ret.name, "friends"); + strcpy(ret.name, "contacts"); return ret; } diff --git a/src/help.c b/src/help.c index 75cceb8..cec76f7 100644 --- a/src/help.c +++ b/src/help.c @@ -131,7 +131,7 @@ static void help_draw_global(ToxWindow *self) wprintw(win, "Global Commands:\n"); wattroff(win, A_BOLD | COLOR_PAIR(RED)); - wprintw(win, " /add : Add friend with optional message\n"); + wprintw(win, " /add : Add contact with optional message\n"); wprintw(win, " /accept : Accept friend request\n"); wprintw(win, " /connect : Manually connect to a DHT node\n"); wprintw(win, " /status : Set status with optional note\n"); @@ -169,7 +169,7 @@ static void help_draw_chat(ToxWindow *self) wprintw(win, "Chat Commands:\n"); wattroff(win, A_BOLD | COLOR_PAIR(RED)); - wprintw(win, " /invite : Invite friend to a group chat\n"); + wprintw(win, " /invite : Invite contact to a group chat\n"); wprintw(win, " /join : Join a pending group chat\n"); wprintw(win, " /sendfile : Send a file\n"); wprintw(win, " /savefile : Receive a file\n"); diff --git a/src/prompt.c b/src/prompt.c index 42bf76c..e6e1925 100644 --- a/src/prompt.c +++ b/src/prompt.c @@ -442,7 +442,7 @@ ToxWindow new_prompt(void) ret.onConnectionChange = &prompt_onConnectionChange; ret.onFriendRequest = &prompt_onFriendRequest; - strcpy(ret.name, "prompt"); + strcpy(ret.name, "home"); ChatContext *chatwin = calloc(1, sizeof(ChatContext)); StatusBar *stb = calloc(1, sizeof(StatusBar));