2003-09-20 Daiki Ueno <ueno@unixuser.org>
+ * riece-options.el (riece-startup-channel-list): Revive.
+ * riece-000.el (riece-handle-001-message): Process
+ riece-startup-channel-list.
+
* riece-server.el (riece-open-server): Display "Logging in to
XXX..." message.
* riece-000.el (riece-handle-001-message): Clear "Logging in to
(if (equal riece-server-name "")
(message "Logging in to IRC server...done")
(message "Logging in to %s...done" riece-server-name))
+ (let ((channel-list riece-startup-channel-list))
+ (while channel-list
+ (if (listp (car channel-list))
+ (riece-command-join (car (car channel-list))
+ (nth 1 (car channel-list)))
+ (riece-command-join (car channel-list)))
+ (setq channel-list (cdr channel-list))))
(run-hooks 'riece-after-login-hook))
(defun riece-handle-004-message (prefix number name string)
:type 'string
:group 'riece-server)
+(defcustom riece-startup-channel-list nil
+ "A list of channels to join automatically at startup."
+ :type '(repeat (choice (string :tag "Channel")
+ (list (string :tag "Channel") (string :tag "Key"))))
+ :group 'riece-channel)
+
(defcustom riece-retry-with-new-nickname nil
"When nickname has already been in use, grow-tail automatically."
:type 'boolean