string even if it is empty.
2004-05-05 Daiki Ueno <ueno@unixuser.org>
+ * riece-misc.el (riece-split-parameters): Don't remove a trailing
+ string even if it is empty.
+
+2004-05-05 Daiki Ueno <ueno@unixuser.org>
+
* riece-ctlseq.el: Require 'riece-message for riece-message-text;
require 'riece-misc for riece-scan-property-region.
(while (string-match "^\\([^ ]+\\) +" string)
(setq parameters (nconc parameters (list (match-string 1 string)))
string (substring string (match-end 0)))
- (and (not (equal "" string)) (eq ?: (aref string 0))
- (setq string (substring string 1))
- (throw 'done nil))))
+ (when (and (not (equal "" string)) (eq ?: (aref string 0)))
+ (setq string (substring string 1)
+ parameters (nconc parameters (list string)))
+ (throw 'done nil))))
(or (equal "" string)
(setq parameters (nconc parameters (list string))))
parameters)))