Show message when own nickname changed in chat rooms

This commit is contained in:
James Booth
2012-11-18 22:49:01 +00:00
parent c6b07533c9
commit bd3f1d1575
7 changed files with 65 additions and 6 deletions

View File

@@ -735,7 +735,21 @@ win_show_room_member_nick_change(const char * const room,
if (win_index == _curr_prof_win)
dirty = TRUE;
}
void
win_show_room_nick_change(const char * const room, const char * const nick)
{
int win_index = _find_prof_win_index(room);
WINDOW *win = _wins[win_index].win;
_win_show_time(win);
wattron(win, COLOUR_ONLINE);
wprintw(win, "** You are now known as %s\n", nick);
wattroff(win, COLOUR_ONLINE);
if (win_index == _curr_prof_win)
dirty = TRUE;
}
void