Function: erc--check-msg-prop
erc--check-msg-prop is a byte-compiled function defined in erc.el.gz.
Signature
(erc--check-msg-prop PROP &optional VAL)
Documentation
Return PROP's value in erc--msg-props when populated.
If VAL is a list, return non-nil if PROP's value appears in VAL. If VAL
is otherwise non-nil, return non-nil if VAL compares eq to the stored
value. Otherwise, return the stored value.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc--check-msg-prop (prop &optional val)
"Return PROP's value in `erc--msg-props' when populated.
If VAL is a list, return non-nil if PROP's value appears in VAL. If VAL
is otherwise non-nil, return non-nil if VAL compares `eq' to the stored
value. Otherwise, return the stored value."
(and-let* ((erc--msg-props)
(v (gethash prop erc--msg-props)))
(if (consp val) (memq v val) (if val (eq v val) v))))