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;
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. */
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")) {