mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-31 18:16:21 +00:00
Added comments to new window open
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user