diff options
| author | Mario Lang <mlang@delysid.org> | 2005-01-16 14:10:02 +0000 |
|---|---|---|
| committer | Mario Lang <mlang@delysid.org> | 2005-01-16 14:10:02 +0000 |
| commit | d69e38c55b7faf9f404537363327526c6a06b30b (patch) | |
| tree | 84bd47fde21301c144206a7ce384f959a135dc80 /chess-ics.el | |
| parent | a106a9a952d6840fc4ecbccc8a2cf51bcac2f52f (diff) | |
Implement resign/takeback/draw/flag announcements for ics (ks)
Diffstat (limited to 'chess-ics.el')
| -rw-r--r-- | chess-ics.el | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/chess-ics.el b/chess-ics.el index 2154902..56959d5 100644 --- a/chess-ics.el +++ b/chess-ics.el @@ -1182,6 +1182,23 @@ This function should be put on `comint-preoutput-filter-functions'." ((eq event 'forward) (chess-ics-send "forward" (chess-game-data game 'ics-buffer))) + + ((eq event 'undo) + (chess-ics-send (format "takeback %d" (car args)) + (chess-game-data game 'ics-buffer))) + + ((eq event 'abort) + (chess-ics-send "abort" (chess-game-data game 'ics-buffer))) + + ((eq event 'call-flag) + (chess-ics-send "flag" (chess-game-data game 'ics-buffer))) + + ((eq event 'draw) + (chess-ics-send "draw" (chess-game-data game 'ics-buffer))) + + ((eq event 'resign) + (chess-ics-send "resign" (chess-game-data game 'ics-buffer))) + (t (apply 'chess-network-handler game event args))))) |
