X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=zippy.c;h=ef1b5052e9e5e13d6690ed9dfb184e0fea2bc7f6;hb=e10b34662822bd8dc06680b6b9977966816450de;hp=2698ac5f6f2a9503184bf673b29b7ef2096ea784;hpb=76d2f540a0bc0a54bbb2aba5e29d5412e7f2191c;p=xboard.git diff --git a/zippy.c b/zippy.c index 2698ac5..ef1b505 100644 --- a/zippy.c +++ b/zippy.c @@ -5,7 +5,7 @@ * Massachusetts. * * Enhancements Copyright 1992-2001, 2002, 2003, 2004, 2005, 2006, - * 2007, 2008, 2009 Free Software Foundation, Inc. + * 2007, 2008, 2009, 2010 Free Software Foundation, Inc. * * Enhancements Copyright 2005 Alessandro Scotti * @@ -931,20 +931,13 @@ int ZippyMatch(buf, i) } - if (ics_type == ICS_ICC) { // [DM] - 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 (looking_at(buf, i, "Your opponent offers you a draw") || + looking_at(buf, i, "* offers you a draw")) { if (first.sendDrawOffers && first.initDone) { SendToProgram("draw\n", &first); } return TRUE; } - } if (looking_at(buf, i, "requests that the game be aborted") || looking_at(buf, i, "would like to abort")) {