From a62a682bc83a3146899865d226552d47ce77648d Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 9 Apr 2002 01:11:49 +0000 Subject: added an IRC bot engine --- chess-network.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'chess-network.el') diff --git a/chess-network.el b/chess-network.el index 8c4f558..af833ee 100644 --- a/chess-network.el +++ b/chess-network.el @@ -35,10 +35,10 @@ (defun chess-network-perform-move () (let* ((move (match-string 1)) (ply (chess-algebraic-to-ply (chess-engine-position nil) move))) - (unless ply - (error "Could not convert engine move: %s" move)) - (let ((chess-network-now-moving t)) - (funcall chess-engine-response-handler 'move ply)))) + (if ply + (let ((chess-network-now-moving t)) + (funcall chess-engine-response-handler 'move ply)) + (message "Received invalid move: %s" move)))) (defun chess-network-handler (event &rest args) "Initialize the network chess engine." -- cgit v1.2.3