fixed bug #25672, patch #6182 by adding DESTDIR support to Makefile.in
[xboard.git] / zippy.c
diff --git a/zippy.c b/zippy.c
index 6ec3d2e..564140e 100644 (file)
--- a/zippy.c
+++ b/zippy.c
@@ -91,11 +91,11 @@ extern char *getenv();
 static char zippyPartner[MSG_SIZ];
 static char zippyLastOpp[MSG_SIZ];
 static int zippyConsecGames;
-static time_t zippyLastGameEnd;\r
-\r
-extern void mysrandom(unsigned int seed);\r
+static time_t zippyLastGameEnd;
+
+extern void mysrandom(unsigned int seed);
 extern int myrandom(void);
-\r
+
 void ZippyInit()
 {
     char *p;
@@ -230,7 +230,8 @@ char *swifties[] = {
     "i enthuses:", "i entreats:", "i enunciates:", "i eulogizes:",
     "i exclaims:", "i execrates:", "i exhorts:", "i expatiates:",
     "i explains:", "i explicates:", "i explodes:", "i exposes:",
-    "i exposits:", "i expounds:", "i expresses:", "i extols:",
+    "i exposits:", "i expostulates: ",
+    "i expounds:", "i expresses:", "i extols:",
     "i exults:", "i fantasizes:", "i fibs:", "i filibusters:",
     "i flatters:", "i flutes:", "i fools:", "i free-associates:",
     "i fulminates:", "i gabbles:", "i gabs:", "i gasps:",
@@ -744,6 +745,11 @@ void ZippyHandleChallenge(srated, swild, sbase, sincrement, opponent)
     base = atoi(sbase);
     increment = atoi(sincrement);
 
+       /* If icsAnalyzeEngine active 
+          we don't accept automatic games */
+       if (appData.icsActive) 
+           if (appData.icsEngineAnalyze) return;
+
     /* If desired, you can insert more code here to decline matches
        based on rated, variant, base, and increment, but it is
        easier to use the ICS formula feature instead. */
@@ -870,21 +876,21 @@ int ZippyMatch(buf, i)
                             StripHighlightAndTitle(star_match[0]));
        return TRUE;
     }
-\r
+
        if (ics_type == ICS_ICC) {
-               if (looking_at(buf, i, "Your opponent offers you a draw")) {\r
-                       if (first.sendDrawOffers && first.initDone)\r
-                               SendToProgram("draw\n", &first);\r
-                       return TRUE;\r
-               }\r
-       } else {\r
+               if (looking_at(buf, i, "Your opponent offers you a draw")) {
+                       if (first.sendDrawOffers && first.initDone)
+                               SendToProgram("draw\n", &first);
+                       return TRUE;
+               }
+       } else {
            if (looking_at(buf, i, "offers you a draw")) {
                if (first.sendDrawOffers && first.initDone) {
                        SendToProgram("draw\n", &first);
                        }
                        return TRUE;
        }
-       }\r
+       }
 
     if (looking_at(buf, i, "requests that the game be aborted") ||
         looking_at(buf, i, "would like to abort")) {