diff options
author | James Booth <boothj5@gmail.com> | 2013-10-07 01:06:19 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2013-10-07 01:06:19 +0100 |
commit | 63f594b49493c5f6d697b19f7f627106b90a2f24 (patch) | |
tree | 60f0b8fe11232f5de97cfe1e4a11cc6cfa02fbc9 | |
parent | 2d534fb278e85b9618852a8a4312eda0352666f8 (diff) | |
download | profani-tty-63f594b49493c5f6d697b19f7f627106b90a2f24.tar.gz |
Refactor ui_recipient_gone
-rw-r--r-- | src/ui/core.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/ui/core.c b/src/ui/core.c index 6a49bfb4..2ce3d0ea 100644 --- a/src/ui/core.c +++ b/src/ui/core.c @@ -815,12 +815,7 @@ ui_recipient_gone(const char * const barejid) ProfWin *window = wins_get_by_recipient(barejid); if (window != NULL) { - win_print_time(window, '!'); - 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); + win_print_line(window, '!', COLOUR_GONE, "<- %s has left the conversation.", display_usr); if (wins_is_current(window)) { wins_refresh_current(); } |