Function: erc-notifications-PRIVMSG

erc-notifications-PRIVMSG is a byte-compiled function defined in erc-desktop-notifications.el.gz.

This function is obsolete since 31.1; switched to erc-match-type API

Signature

(erc-notifications-PRIVMSG PROC PARSED)

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc-desktop-notifications.el.gz
(defun erc-notifications-PRIVMSG (_proc parsed)
  (declare (obsolete "switched to `erc-match-type' API" "31.1"))
  (let ((nick (car (erc-parse-user (erc-response.sender parsed))))
        (target (car (erc-response.command-args parsed)))
        (msg (erc-response.contents parsed)))
    (when (and (erc-current-nick-p target)
               (not (and (boundp 'erc-track-exclude)
                         (member nick erc-track-exclude)))
               (not (erc-is-message-ctcp-and-not-action-p msg)))
      (erc-notifications-notify nick msg t)))
  ;; Return nil to continue processing by ERC
  nil)