From: Eric Mullins Date: Mon, 21 Sep 2009 05:13:13 +0000 (-0600) Subject: Swapped 'tell' and 'message' parsing order for colorization. Sometimes X-Git-Tag: v4.4.1.20091019~87 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=f585310d39fc64bf99d19aa67ba76ba9d6e13909;hp=4135e15849968700f028ffbbb46ad92aa540967c;p=xboard.git Swapped 'tell' and 'message' parsing order for colorization. Sometimes messages are relayed as tells and should be colorized as tells. --- diff --git a/backend.c b/backend.c index ccb28ec..2f96d08 100644 --- a/backend.c +++ b/backend.c @@ -2416,14 +2416,15 @@ read_from_ics(isr, closure, data, count, error) #endif #endif } // [DM] 'else { ' deleted - if (/* Don't color "message" or "messages" output */ - (tkind = 5, looking_at(buf, &i, "*. * (*:*): ")) || - looking_at(buf, &i, "*. * at *:*: ") || - looking_at(buf, &i, "--* (*:*): ") || + if ( /* Regular tells and says */ (tkind = 1, looking_at(buf, &i, "* tells you: ")) || looking_at(buf, &i, "* (your partner) tells you: ") || looking_at(buf, &i, "* says: ") || + /* Don't color "message" or "messages" output */ + (tkind = 5, looking_at(buf, &i, "*. * (*:*): ")) || + looking_at(buf, &i, "*. * at *:*: ") || + looking_at(buf, &i, "--* (*:*): ") || /* Message notifications (same color as tells) */ looking_at(buf, &i, "* has left a message ") || looking_at(buf, &i, "* just sent you a message:\n") ||