mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-31 23:26:20 +00:00
Refactor ui_recipient_gone
This commit is contained in:
@@ -815,12 +815,7 @@ ui_recipient_gone(const char * const barejid)
|
|||||||
|
|
||||||
ProfWin *window = wins_get_by_recipient(barejid);
|
ProfWin *window = wins_get_by_recipient(barejid);
|
||||||
if (window != NULL) {
|
if (window != NULL) {
|
||||||
win_print_time(window, '!');
|
win_print_line(window, '!', COLOUR_GONE, "<- %s has left the conversation.", display_usr);
|
||||||
wattron(window->win, COLOUR_GONE);
|
|
||||||
wprintw(window->win, "<- %s ", display_usr);
|
|
||||||
wprintw(window->win, "has left the conversation.");
|
|
||||||
wprintw(window->win, "\n");
|
|
||||||
wattroff(window->win, COLOUR_GONE);
|
|
||||||
if (wins_is_current(window)) {
|
if (wins_is_current(window)) {
|
||||||
wins_refresh_current();
|
wins_refresh_current();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user