Function: rcirc-check-auth-status
rcirc-check-auth-status is a byte-compiled function defined in
rcirc.el.gz.
Signature
(rcirc-check-auth-status PROCESS SENDER ARGS TEXT)
Documentation
Check if the user just authenticated.
If authenticated, runs rcirc-authenticated-hook with PROCESS as
the only argument. ARGS should have the form (TARGET MESSAGE).
SENDER is used the determine the authentication method. PROCESS
is the process object for the current connection.
Source Code
;; Defined in /usr/src/emacs/lisp/net/rcirc.el.gz
(defun rcirc-check-auth-status (process sender args _text)
"Check if the user just authenticated.
If authenticated, runs `rcirc-authenticated-hook' with PROCESS as
the only argument. ARGS should have the form (TARGET MESSAGE).
SENDER is used the determine the authentication method. PROCESS
is the process object for the current connection."
(with-rcirc-process-buffer process
(when (and (not rcirc-user-authenticated)
rcirc-authenticate-before-join
rcirc-auto-authenticate-flag)
(let ((target (car args))
(message (cadr args)))
(when (or
(and ;; nickserv
(string= sender "NickServ")
(string= target rcirc-nick)
(cl-member
message
(list
(format "You are now identified for \C-b%s\C-b." rcirc-nick)
(format "You are successfully identified as \C-b%s\C-b."
rcirc-nick)
"Password accepted - you are now recognized.")
;; The nick may have a different case, so match
;; case-insensitively (Bug#39345).
:test #'cl-equalp))
(and ;; quakenet
(string= sender "Q")
(string= target rcirc-nick)
(string-match "\\`You are now logged in as .+\\.\\'" message)))
(setq rcirc-user-authenticated t)
(run-hook-with-args 'rcirc-authenticated-hook process)
(remove-hook 'rcirc-authenticated-hook 'rcirc-join-channels-post-auth t))))))