From f585310d39fc64bf99d19aa67ba76ba9d6e13909 Mon Sep 17 00:00:00 2001
From: Eric Mullins <emwine@earthlink.net>
Date: Sun, 20 Sep 2009 23:13:13 -0600
Subject: [PATCH] Swapped 'tell' and 'message' parsing order for colorization.  Sometimes
 messages are relayed as tells and should be colorized as tells.

---
 backend.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

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") ||
-- 
1.7.0.4