Function: rcirc-handler-001
rcirc-handler-001 is a byte-compiled function defined in rcirc.el.gz.
Signature
(rcirc-handler-001 PROCESS SENDER ARGS TEXT)
Documentation
Handle welcome message.
SENDER and ARGS are used to initialize the current connection. PROCESS is the process object for the current connection.
Source Code
;; Defined in /usr/src/emacs/lisp/net/rcirc.el.gz
;;; handlers
;; these are called with the server PROCESS, the SENDER, which is a
;; server or a user, depending on the command, the ARGS, which is a
;; list of strings, and the TEXT, which is the original server text,
;; verbatim
(defun rcirc-handler-001 (process sender args _text)
"Handle welcome message.
SENDER and ARGS are used to initialize the current connection.
PROCESS is the process object for the current connection."
(rcirc-handler-generic process "001" sender args nil)
(with-rcirc-process-buffer process
(setq rcirc-connecting nil)
(rcirc-reschedule-timeout process)
(setq rcirc-server-name sender)
(setq rcirc-nick (car args))
(rcirc-update-prompt)
(if (and rcirc-auto-authenticate-flag
;; We have to ensure that there's an authentication
;; entry for that server. Otherwise,
;; there's no point in calling authenticate.
(let (auth-required)
(dolist (s rcirc-authinfo auth-required)
(when (string-match (car s) rcirc-server)
(setq auth-required t)))))
(if rcirc-authenticate-before-join
(progn
(add-hook 'rcirc-authenticated-hook 'rcirc-join-channels-post-auth t t)
(rcirc-authenticate))
(rcirc-authenticate)
(rcirc-join-channels process rcirc-startup-channels))
(rcirc-join-channels process rcirc-startup-channels))))