Function: rcirc-handler-MODE
rcirc-handler-MODE is a byte-compiled function defined in rcirc.el.gz.
Signature
(rcirc-handler-MODE PROCESS SENDER ARGS TEXT)
Documentation
Handle MODE messages.
ARGS should have the form (TARGET . MESSAGE-LIST).
SENDER is passed on to rcirc-print.
PROCESS is the process object for the current connection.
Source Code
;; Defined in /usr/src/emacs/lisp/net/rcirc.el.gz
(defun rcirc-handler-MODE (process sender args _text)
"Handle MODE messages.
ARGS should have the form (TARGET . MESSAGE-LIST).
SENDER is passed on to `rcirc-print'.
PROCESS is the process object for the current connection."
(let ((target (car args))
(msg (mapconcat 'identity (cdr args) " ")))
(rcirc-print process sender "MODE"
(if (string= target (rcirc-nick process))
nil
target)
msg)
;; print in private chat buffers if they exist
(mapc (lambda (nick)
(when (rcirc-get-buffer process nick)
(rcirc-print process sender "MODE" nick msg)))
(cddr args))))