Function: rcirc-handler-PRIVMSG
rcirc-handler-PRIVMSG is a byte-compiled function defined in
rcirc.el.gz.
Signature
(rcirc-handler-PRIVMSG PROCESS SENDER ARGS TEXT)
Documentation
Handle a (private) message from SENDER.
ARGS should have the form (TARGET MESSAGE). TEXT is the verbatim message as received from the server. PROCESS is the process object for the current connection.
Source Code
;; Defined in /usr/src/emacs/lisp/net/rcirc.el.gz
(defun rcirc-handler-PRIVMSG (process sender args text)
"Handle a (private) message from SENDER.
ARGS should have the form (TARGET MESSAGE). TEXT is the verbatim
message as received from the server. PROCESS is the process
object for the current connection."
(rcirc-check-auth-status process sender args text)
(let ((target (if (rcirc-channel-p (car args))
(car args)
sender))
(message (or (cadr args) "")))
(if (string-match "^\C-a\\(.*\\)\C-a$" message)
(rcirc-handler-CTCP process target sender (match-string 1 message))
(rcirc-print process sender "PRIVMSG" target message t))
;; update nick linestamp
(with-current-buffer (rcirc-get-buffer process target t)
(rcirc-put-nick-channel process sender target rcirc-current-line))))