Function: erc-nicks--highlight
erc-nicks--highlight is a byte-compiled function defined in
erc-nicks.el.gz.
Signature
(erc-nicks--highlight NICKNAME &optional BASE-FACE)
Documentation
Return face for NICKNAME unless it or BASE-FACE is blacklisted.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc-nicks.el.gz
(defun erc-nicks--highlight (nickname &optional base-face)
"Return face for NICKNAME unless it or BASE-FACE is blacklisted."
(when-let ((trimmed (erc-nicks--trim nickname))
((not (member trimmed erc-nicks--downcased-skip-nicks)))
((not (and base-face
(erc-nicks--skip-p base-face erc-nicks-skip-faces
erc-nicks--max-skip-search))))
(key (erc-nicks--gen-key-from-format-spec trimmed)))
(erc-nicks--get-face trimmed key)))