# HG changeset patch # User Michal 'vorner' Vaner # Date 1188291135 -7200 # Node ID 86caabe72f3aff0e8f40dafe1c9a7c2c2f62a384 # Parent 359e1c53552a932c17482db179da396c6ddb1d15 Color only incoming messages diff -r 359e1c53552a -r 86caabe72f3a mcabber/src/screen.c --- 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