+2005-02-04 Daiki Ueno <ueno@unixuser.org>
+
+ * riece-options.el (riece-part-message): New user option.
+ * riece-commands.el (riece-command-part): Use riece-part-message.
+
2005-02-04 OHASHI Akira <bg66@koka-in.org>
* riece-eval.el (riece-eval-form): New function.
(format "PART %s\r\n"
(riece-identity-prefix target))))))
-(defun riece-command-part (target &optional message)
+(defun riece-command-part (target)
(interactive
(progn
(riece-check-channel-commands-are-usable)
(riece-format-identity riece-current-channel))
riece-current-channels nil nil nil nil
(riece-format-identity riece-current-channel)))
- message)
- (if (and current-prefix-arg
- (riece-channel-p (riece-identity-prefix target)))
- (setq message (read-string "Message: ")))
+ (message
+ (if current-prefix-arg
+ (read-string "Message: ")
+ riece-part-message)))
(list target message))))
(if (riece-identity-member target riece-current-channels)
(if (riece-channel-p (riece-identity-prefix target))
(let ((message
(if arg
(read-string "Message: ")
- riece-quit-message))
+ riece-quit-message))
(alist riece-server-process-alist))
(while alist
(riece-quit-server-process (cdr (car alist)) message)
:type '(string :tag "Quit message")
:group 'riece-options)
+(defcustom riece-part-message nil
+ "Default part message."
+ :type '(choice (const :tag "No message" nil)
+ (string :tag "Part message"))
+ :group 'riece-options)
+
(defcustom riece-away-message "Gone"
"Default away message."
:type '(string :tag "Away message")