Try to not confuse ICS rating adustments as shouts
authorH.G. Muller <h.g.muller@hccnet.nl>
Wed, 28 Dec 2011 21:32:38 +0000 (22:32 +0100)
committerH.G. Muller <h.g.muller@hccnet.nl>
Wed, 28 Dec 2011 21:32:38 +0000 (22:32 +0100)
An explicit pattern match for the rating adjustment is added before
matching the shouts.

backend.c

index 2925088..ffb0823 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -3126,6 +3126,8 @@ read_from_ics(isr, closure, data, count, error)
                }
            } // [HGM] kibitz: end of patch
 
+           if(looking_at(buf, &i, "* rating adjustment: * --> *\n")) continue;
+
            // [HGM] chat: intercept tells by users for which we have an open chat window
            channel = -1;
            if(started == STARTED_NONE && (looking_at(buf, &i, "* tells you:") || looking_at(buf, &i, "* says:") ||