Function: erc-server-INVITE
erc-server-INVITE is a byte-compiled function defined in
erc-backend.el.gz.
Signature
(erc-server-INVITE PROC PARSED)
Documentation
Handle invitation messages.
Handler for a INVITE server response. PROC is the server process which returned the response. PARSED is the actual response as an ‘erc-response’ struct. If you want to add responses don’t modify this function, but rather add things to ‘erc-server-INVITE-functions’ instead.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc-backend.el.gz
(define-erc-response-handler (INVITE)
"Handle invitation messages."
nil
(let ((target (car (erc-response.command-args parsed)))
(chnl (erc-response.contents parsed)))
(pcase-let ((`(,nick ,login ,host)
(erc-parse-user (erc-response.sender parsed))))
(setq erc-invitation chnl)
(when (string= target (erc-current-nick))
(erc-display-message
parsed 'notice 'active
'INVITE ?n nick ?u login ?h host ?c chnl)))))