hirc

IRC client
Log | Files | Refs

commit e507369d9d61a6bbf8c033b32a8661d81dca3377
parent d2542852950a5f7b7381964db2383d13ecea243a
Author: hhvn <dev@hhvn.uk>
Date:   Sat, 20 Nov 2021 22:05:57 +0000

ui.c: coloured nicks in nicklist

Diffstat:
Mui.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ui.c b/ui.c @@ -367,8 +367,8 @@ ui_draw_nicklist(void) { nick_sort(&selected.channel->nicks, selected.server); /* TODO: more nicks than screen height? */ for (p = selected.channel->nicks; p; p = p->next) { - /* TODO: colourize nicks */ - wprintw(windows[Win_nicklist].window, "%c%s\n", p->priv, p->nick); + ui_wprintc(&windows[Win_nicklist], 0, "%02d%c%s\n", + nick_getcolour(p), p->priv, p->nick); } }