diff options
| author | John Wiegley <johnw@newartisans.com> | 2002-04-09 01:11:49 +0000 |
|---|---|---|
| committer | John Wiegley <johnw@newartisans.com> | 2002-04-09 01:11:49 +0000 |
| commit | a62a682bc83a3146899865d226552d47ce77648d (patch) | |
| tree | f757484e29a2b0dc6e5dc6a982605fc52dc68d41 /chess-network.el | |
| parent | 857af45023d64bf66c6c62a3054df240ff64e292 (diff) | |
added an IRC bot engine
Diffstat (limited to 'chess-network.el')
| -rw-r--r-- | chess-network.el | 8 |
1 files changed, 4 insertions, 4 deletions
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." |
