query a channe mode.
* riece-mode.el (riece-parse-modes): Accept mode spec not
delimited with " " such as "-n+s".
2004-06-10 Daiki Ueno <ueno@unixuser.org>
+ * riece-commands.el (riece-command-change-mode): Don't send ":" to
+ query a channe mode.
+ * riece-mode.el (riece-parse-modes): Accept mode spec not
+ delimited with " " such as "-n+s".
+
+2004-06-10 Daiki Ueno <ueno@unixuser.org>
+
* riece-layout.el (riece-set-window-points): Restore window-point
of the channel buffer from riece-channel-buffer-window-point.
(concat (riece-concat-channel-modes
channel "Mode (? for help)") ": ")
nil riece-minibuffer-map))))
- (riece-send-string (format "MODE %s :%s\r\n" (riece-identity-prefix channel)
- change)))
+ (if (equal change "")
+ (riece-send-string (format "MODE %s\r\n"
+ (riece-identity-prefix channel)))
+ (riece-send-string (format "MODE %s :%s\r\n"
+ (riece-identity-prefix channel)
+ change))))
(defun riece-command-set-operators (users &optional arg)
(interactive
(defun riece-parse-modes (string)
(let ((start 0)
result)
- (while (and (string-match "[-+]\\([^ ]*\\) *" string start)
+ (while (and (string-match "[-+]\\([^-+ ]*\\) *" string start)
(= (match-beginning 0) start))
- (let ((toggle (eq (aref string 0) ?+))
+ (let ((toggle (eq (aref string start) ?+))
(modes (string-to-list (match-string 1 string))))
(setq start (match-end 0))
(while modes