From: ueno Date: Fri, 4 Feb 2005 07:18:27 +0000 (+0000) Subject: Fixed. X-Git-Tag: riece-1_0_7~33 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=2f3697973544307de9a3c12eaf47f9e828666529;p=elisp%2Friece.git Fixed. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9a595e3..117325d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,6 +1,6 @@ 2005-02-04 Daiki Ueno - * riece-filter.el (riece-filter): Accept lines which ends with LF. + * riece-filter.el (riece-filter): Accept lines which end with LF. * riece-300.el (riece-353-string): Renamed from riece-353-users. (riece-handle-353-message): Don't parse the reply. diff --git a/lisp/riece-filter.el b/lisp/riece-filter.el index 65b252d..b2ae24f 100644 --- a/lisp/riece-filter.el +++ b/lisp/riece-filter.el @@ -76,16 +76,16 @@ (setq riece-read-point (point)))) (beginning-of-line) (while (and (not (eobp)) - (looking-at ".*\r?\n")) ;the input line is not finished + (looking-at "[^\r]*\r?\n")) ;the input line is not finished (save-excursion (if (looking-at - ":\\([^ ]+\\) +\\([0-5][0-9][0-9]\\) +\\([^ ]+\\) +\\(.*\\)\r?\n") + ":\\([^ ]+\\) +\\([0-5][0-9][0-9]\\) +\\([^ ]+\\) +\\([^\r]*\\)\r?\n") (riece-handle-numeric-reply (match-string 1) ;prefix (string-to-number (match-string 2)) ;number (match-string 3) ;name (match-string 4)) ;reply string - (if (looking-at "\\(:\\([^ ]+\\) +\\)?\\([^ ]+\\) +\\(.*\\)\r?\n") + (if (looking-at "\\(:\\([^ ]+\\) +\\)?\\([^ ]+\\) +\\([^\r]*\\)\r?\n") (riece-handle-message (match-string 2) ;optional prefix (match-string 3) ;command