summaryrefslogtreecommitdiff
path: root/chess-network.el
diff options
context:
space:
mode:
Diffstat (limited to 'chess-network.el')
-rw-r--r--chess-network.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/chess-network.el b/chess-network.el
index 237ba43..dee0647 100644
--- a/chess-network.el
+++ b/chess-network.el
@@ -111,7 +111,9 @@
(chess-engine-send nil (format "chess match %s\n" chess-full-name)))
((eq event 'resign)
- (chess-engine-send nil "resign\n"))
+ (chess-engine-send nil "resign\n")
+ (and (chess-engine-game nil)
+ (chess-game-set-data (chess-engine-game nil) 'active nil)))
((eq event 'draw)
(if chess-engine-pending-offer