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 NICKUSERHOST MSG)

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc-desktop-notifications.el.gz
(defun erc-notifications-notify-on-match (match-type nickuserhost msg)
  (when (eq match-type 'current-nick)
    (let ((nick (nth 0 (erc-parse-user nickuserhost))))
      (unless (or (string-match-p "^Server:" nick)
                  (when (boundp 'erc-track-exclude)
                    (member nick erc-track-exclude)))
        (erc-notifications-notify nick msg)))))