summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chess-common.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/chess-common.el b/chess-common.el
index 167ee4d..c6ed7d8 100644
--- a/chess-common.el
+++ b/chess-common.el
@@ -60,6 +60,9 @@
((eq event 'draw)
(chess-message 'draw-offer-declined))
+ ((eq event 'drawn)
+ (chess-game-set-data game 'active nil))
+
((memq event '(resign abort))
(chess-engine-send nil "new\n")
(chess-engine-set-position nil))