Function: erc-notifications-notify-on-match
erc-notifications-notify-on-match is a byte-compiled function defined
in erc-desktop-notifications.el.gz.
Signature
(erc-notifications-notify-on-match MATCH-TYPE _ MSG)
Documentation
Emit MSG if MATCH-TYPE is current-nick and other conditions allow.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc-desktop-notifications.el.gz
(defun erc-notifications-notify-on-match (match-type _ msg)
"Emit MSG if MATCH-TYPE is `current-nick' and other conditions allow."
(when (eq match-type 'current-nick)
(let ((match erc-match-highlight-matched))
(cl-assert (erc-match-opt-current-nick-p match))
(when-let* ((nick (erc-match-nick match)))
(unless (run-hook-with-args-until-success
'erc-desktop-notifications-skip-predicates
match)
(erc-notifications-notify nick msg))))))