Function: erc-notify-NICK
erc-notify-NICK is a byte-compiled function defined in
erc-notify.el.gz.
Signature
(erc-notify-NICK PROC PARSED)
Documentation
Check if new nick is on erc-notify-list and not on erc-last-ison.
When that's the case, produce a notify-on message and add the
nick to erc-last-ison to prevent any further notifications.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc-notify.el.gz
(defun erc-notify-NICK (proc parsed)
"Check if new nick is on `erc-notify-list' and not on `erc-last-ison'.
When that's the case, produce a `notify-on' message and add the
nick to `erc-last-ison' to prevent any further notifications."
(let ((nick (erc-response.contents parsed)))
(when (and (erc-member-ignore-case nick erc-notify-list)
(not (erc-member-ignore-case nick erc-last-ison)))
(add-to-list 'erc-last-ison nick)
(run-hook-with-args 'erc-notify-signon-hook
(or erc-server-announced-name erc-session-server)
nick)
(erc-display-message
parsed 'notice proc
'notify-on ?n nick ?m (erc-network-name)))
nil))