Function: rcirc-handler-NOTICE
rcirc-handler-NOTICE is a byte-compiled function defined in
rcirc.el.gz.
Signature
(rcirc-handler-NOTICE PROCESS SENDER ARGS TEXT)
Documentation
Handle a notice 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-NOTICE (process sender args text)
"Handle a notice 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 (car args))
(message (cadr args)))
(if (string-match "^\C-a\\(.*\\)\C-a$" message)
(rcirc-handler-CTCP-response process target sender
(match-string 1 message))
(rcirc-print process sender "NOTICE"
(cond ((rcirc-channel-p target)
target)
;; -ChanServ- [#gnu] Welcome...
((string-match "\\[\\(#[^] ]+\\)\\]" message)
(match-string 1 message))
(sender
(if (string= sender (rcirc-server-name process))
nil ; server notice
sender)))
message t))))