2004-05-26 Daiki Ueno <ueno@unixuser.org>
+ * riece.el (riece-exit): Don't disable addons.
+
+ * riece-commands.el (riece-command-quit): Don't query user to
+ input y/n if there is no server process.
+
+2004-05-26 Daiki Ueno <ueno@unixuser.org>
+
* riece-highlight.el: Require 'derived.
(riece-highlight-setup-dialogue): Turn on font-lock if
riece-highlight-enabled.
(defun riece-command-quit (&optional arg)
"Quit IRC."
(interactive "P")
- (if (y-or-n-p "Really quit IRC? ")
- (if riece-server-process-alist
- (let ((message
- (if arg
- (read-string "Message: ")
- riece-quit-message))
- (alist riece-server-process-alist))
- (while alist
- (riece-quit-server-process (cdr (car alist)) message)
- (setq alist (cdr alist))))
- ;; If no server process is available, exit immediately.
- (riece-exit))))
+ (if (null riece-server-process-alist)
+ (progn
+ (message "No server process")
+ (ding))
+ (if (y-or-n-p "Really quit IRC? ")
+ (let ((message
+ (if arg
+ (read-string "Message: ")
+ riece-quit-message))
+ (alist riece-server-process-alist))
+ (while alist
+ (riece-quit-server-process (cdr (car alist)) message)
+ (setq alist (cdr alist)))))))
(defun riece-command-raw (command)
"Enter raw IRC command, which is sent to the server."
(delete-region start end)))))
(defun riece-exit ()
- (let ((pointer riece-addons))
- (while pointer
- (riece-disable-addon (car pointer) riece-debug)
- (setq pointer (cdr pointer))))
(if riece-save-variables-are-dirty
(riece-save-variables-files))
(while riece-buffer-list