2003-05-31 Daiki Ueno <ueno@unixuser.org>
+ * riece-server.el (riece-open-server): Simplify message.
+
+ * riece-commands.el (riece-command-open-server): Throw an error
+ when the server is already opened.
+
* riece-filter.el (riece-sentinel): Simplified.
* riece-display.el (riece-user-list-update-buffer): Check the
(defun riece-command-open-server (server-name)
(interactive
(list (completing-read "Server: " riece-server-alist)))
- (riece-open-server
- (riece-server-name-to-server server-name)
- server-name))
+ (if (assoc server-name riece-server-process-alist)
+ (error "%s already opened" server-name)
+ (riece-open-server
+ (riece-server-name-to-server server-name)
+ server-name)))
(defun riece-command-close-server (server-name &optional message)
(interactive
(defun riece-open-server (server &optional server-name)
(if server-name
- (message "Connecting to IRC server %s..." server-name)
+ (message "Connecting to %s..." server-name)
(message "Connecting to IRC server..."))
(riece-server-keyword-bind server
(let* (selective-display
riece-server-process-alist))
(setq riece-server-process process))))
(if server-name
- (message "Connecting to IRC server %s...done" server-name)
+ (message "Connecting to %s...done" server-name)
(message "Connecting to IRC server...done")))
(defun riece-reset-process-buffer (process)