[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 224/255: handle IGS shouts
From: |
Eric Schulte |
Subject: |
[elpa] 224/255: handle IGS shouts |
Date: |
Sun, 16 Mar 2014 01:02:52 +0000 |
eschulte pushed a commit to branch go
in repository elpa.
commit 7fa4d1a63cc01a579f2ceab53ca83bd93cdfb34e
Author: Eric Schulte <address@hidden>
Date: Thu Aug 8 10:52:41 2013 -0600
handle IGS shouts
---
back-ends/igs.el | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/back-ends/igs.el b/back-ends/igs.el
index 7173086..1eaa281 100644
--- a/back-ends/igs.el
+++ b/back-ends/igs.el
@@ -146,6 +146,7 @@ This is used to re-send messages to keep the IGS server
from timing out.")
(:kibitz (message "igs-kibitz: %s" content))
(:tell (igs-handle-tell content))
(:beep nil)
+ (:shout (igs-handle-shout content))
(t (message "igs-unknown: [%s]%s" type content)))
(when (and *igs-time-last-sent*
(> (time-to-seconds (time-since *igs-time-last-sent*))
@@ -315,6 +316,13 @@ This is used to re-send messages to keep the IGS server
from timing out.")
;; may be saved... during games store messages as SGF comments.
(message "igs[%s]: %s" (match-string 1 string) (match-string 2 string)))
+(defun igs-handle-shout (string)
+ ;; !GAO!: miss click :)
+ ;; !Myselium1!: was a nice game...Dominico to bad you missed the left
corner-side.
+ (unless (string-match "^\\([^:]*\\): \\(.*\\)$" string)
+ (error "igs: malformed shout string %S" string))
+ (message "IGS[%s]: %s" (match-string 1 string) (match-string 2 string)))
+
(defun igs-apply-move (move)
(if (aget (igs-current-game) :board)
(setf (go-move (aget (igs-current-game) :board)) move)
- [elpa] 212/255: bug fix, wrong function name, (continued)
- [elpa] 212/255: bug fix, wrong function name, Eric Schulte, 2014/03/15
- [elpa] 225/255: quit observing IGS game w/o closing connection, Eric Schulte, 2014/03/15
- [elpa] 171/255: bigger stones, Eric Schulte, 2014/03/15
- [elpa] 219/255: updated igs backend, Eric Schulte, 2014/03/15
- [elpa] 222/255: asynchronous IGS game listing, Eric Schulte, 2014/03/15
- [elpa] 220/255: list buffer navigation, Eric Schulte, 2014/03/15
- [elpa] 217/255: sorting columns, Eric Schulte, 2014/03/15
- [elpa] 216/255: small list buffer tweaks, Eric Schulte, 2014/03/15
- [elpa] 238/255: wrap go-re-cond in save-match-data, Eric Schulte, 2014/03/15
- [elpa] 223/255: use igs-re-cond to handle prompts, Eric Schulte, 2014/03/15
- [elpa] 224/255: handle IGS shouts,
Eric Schulte <=
- [elpa] 226/255: remove shouts from comments, Eric Schulte, 2014/03/15
- [elpa] 151/255: Revert "push all buffer-local variables into an igs object", Eric Schulte, 2014/03/15
- [elpa] 237/255: thoughts about browser-based implementation, Eric Schulte, 2014/03/15
- [elpa] 236/255: factor general comint utils out of igs.el, Eric Schulte, 2014/03/15
- [elpa] 192/255: two consecutive passes ends the game, Eric Schulte, 2014/03/15
- [elpa] 210/255: using curry, rcurry and compose helpers, Eric Schulte, 2014/03/15
- [elpa] 203/255: adding GPL copyright file, Eric Schulte, 2014/03/15
- [elpa] 243/255: undo through gtp pipe, Eric Schulte, 2014/03/15
- [elpa] 246/255: customizable default gnugo options, Eric Schulte, 2014/03/15
- [elpa] 241/255: igs class definitions up front for better loading, Eric Schulte, 2014/03/15