Mercurial > hg
changeset 1294:86caabe72f3a
Color only incoming messages
author | Michal 'vorner' Vaner <vorner@ucw.cz> |
---|---|
date | Tue, 28 Aug 2007 10:52:15 +0200 |
parents | 359e1c53552a |
children | 33cb828282d5 |
files | mcabber/src/screen.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mcabber/src/screen.c Tue Aug 28 10:26:31 2007 +0200 +++ b/mcabber/src/screen.c Tue Aug 28 10:52:15 2007 +0200 @@ -1036,7 +1036,7 @@ wmove(win_entry->win, n, getprefixwidth()-1); //The MUC nick - overwrite with propper color - if (line->mucnicklen && (line->flags & HBB_PREFIX_IN)) { + if (line->mucnicklen) { //Store the char after the nick char tmp = line->text[line->mucnicklen]; muccoltype type = glob_muccol, *typetmp; @@ -1068,7 +1068,9 @@ } if (nickcolors) actual = g_hash_table_lookup(nickcolors, line->text); - if (actual && ((type == MC_ALL) || (actual->manual))) + if (actual && ((type == MC_ALL) || (actual->manual)) + && (line->flags & HBB_PREFIX_IN) && + (!(line->flags & HBB_PREFIX_HLIGHT_OUT))) wattrset(win_entry->win, get_color(actual->color)); wprintw(win_entry->win, "%s", line->text); //Return the char