1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Added comments to new window open

This commit is contained in:
James Booth 2012-10-08 22:34:45 +01:00
parent ee46389486
commit 2294d908f6

View File

@ -367,6 +367,7 @@ win_show_outgoing_msg(const char * const from, const char * const to,
int win_index = _find_prof_win_index(to); int win_index = _find_prof_win_index(to);
WINDOW *win = NULL; WINDOW *win = NULL;
// create new window
if (win_index == NUM_WINS) { if (win_index == NUM_WINS) {
win_index = _new_prof_win(to); win_index = _new_prof_win(to);
win = _wins[win_index].win; win = _wins[win_index].win;
@ -376,6 +377,8 @@ win_show_outgoing_msg(const char * const from, const char * const to,
const char const *status = p_contact_status(contact); const char const *status = p_contact_status(contact);
_show_status_string(win, to, show, status, "--", "offline"); _show_status_string(win, to, show, status, "--", "offline");
} }
// use existing window
} else { } else {
win = _wins[win_index].win; win = _wins[win_index].win;
} }