summaryrefslogtreecommitdiff
path: root/chess-ics.el
diff options
context:
space:
mode:
Diffstat (limited to 'chess-ics.el')
-rw-r--r--chess-ics.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/chess-ics.el b/chess-ics.el
index 39bae50..508c4fa 100644
--- a/chess-ics.el
+++ b/chess-ics.el
@@ -204,6 +204,11 @@ who is black."
(funcall chess-engine-response-handler 'accept)))))
(cons "<12> \\(.+\\)"
'chess-ics-handle-move)
+ (cons "Illegal move (\\([^)]+\\))\\."
+ (function
+ (lambda ()
+ (funcall chess-engine-response-handler 'illegal
+ (match-string 1)))))
(cons "Challenge: \\(\\S-+\\) \\S-+ \\S-+ \\S-+ .+"
(function
(lambda ()