From: ueno Date: Fri, 19 Nov 2004 08:41:46 +0000 (+0000) Subject: * riece.el (riece-submit-bug-report): Query CTCP VERSION. X-Git-Tag: riece-1_0_6~41 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e93014994779475b7bae0439cb9303361cc0967e;p=elisp%2Friece.git * riece.el (riece-submit-bug-report): Query CTCP VERSION. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 440d236..6d4a286 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,7 +1,12 @@ 2004-11-19 Daiki Ueno + * riece.el (riece-submit-bug-report): Query CTCP VERSION. + +2004-11-19 Daiki Ueno + * riece.el (riece-submit-bug-report): use riece-server-process-opened instead of process-live-p. + * riece-server.el (riece-flush-send-queue): Use riece-server-process-opened instead of process-live-p. diff --git a/lisp/riece.el b/lisp/riece.el index bda69c1..be0e9c2 100644 --- a/lisp/riece.el +++ b/lisp/riece.el @@ -541,6 +541,20 @@ Instead, these commands are available: ;; This strange form ensures that (recent-keys) is the value before ;; the bug subject string is read. (interactive (list (riece-recent-messages 20) (recent-keys))) + (message "Checking CTCP VERSION...") + (let ((pointer riece-server-process-alist) + nickname) + (while pointer + (if (and (riece-server-process-opened (cdr (car pointer))) + (setq nickname + (with-current-buffer (process-buffer (cdr (car pointer))) + riece-real-nickname))) + (process-send-string + (cdr (car pointer)) + (format "PRIVMSG %s :\1VERSION\1\r\n" nickname))) + (setq pointer (cdr pointer)))) + (sit-for 3) + (message "Checking CTCP VERSION...done") (require 'reporter) (let ((reporter-prompt-for-summary-p t)) (unless riece-debug @@ -590,7 +604,7 @@ are familiar with the debugger, to get a lisp back-trace.") (save-excursion (set-buffer (process-buffer (cdr (car pointer)))) (goto-char (point-max)) - (beginning-of-line -20) + (beginning-of-line -60) (buffer-substring (point) (point-max))) "(closed server)")) (setq pointer (cdr pointer))))