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:
parent
ee46389486
commit
2294d908f6
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user