Function: rcirc-handler-INVITE

rcirc-handler-INVITE is a byte-compiled function defined in rcirc.el.gz.

Signature

(rcirc-handler-INVITE PROCESS SENDER ARGS TEXT)

Documentation

Notify user of an invitation from SENDER.

ARGS should have the form (TARGET CHANNEL). PROCESS is the process object for the current connection.

Source Code

;; Defined in /usr/src/emacs/lisp/net/rcirc.el.gz
(defun rcirc-handler-INVITE (process sender args _text)
  "Notify user of an invitation from SENDER.
ARGS should have the form (TARGET CHANNEL).  PROCESS is the
process object for the current connection."
  (let ((self (with-rcirc-process-buffer process rcirc-nick))
        (target (car args))
        (chan (cadr args)))
    ;; `rcirc-channel-filter' is not used here because joining
    ;; requires an unfiltered name.
    (if (string= target self)
        (rcirc-print process sender "INVITE" nil
                     (format "%s invited you to %s"
                             sender chan)
                     t)
      (rcirc-print process sender "INVITE" chan
                   (format "%s invited %s"
                           sender target)
                   t))))