Function: erc--cusr-status-p
erc--cusr-status-p is a byte-compiled function defined in erc.el.gz.
Signature
(erc--cusr-status-p NICK-OR-CUSR LETTER)
Documentation
Return non-nil if NICK-OR-CUSR has channel membership status LETTER.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
;; This is a generalized version of the compat-oriented getters above.
(defun erc--cusr-status-p (nick-or-cusr letter)
"Return non-nil if NICK-OR-CUSR has channel membership status LETTER."
(and-let* ((cusr (or (and (erc-channel-user-p nick-or-cusr) nick-or-cusr)
(cdr (erc-get-channel-member nick-or-cusr))))
(n (erc--get-prefix-flag letter)))
(= n (logand n (erc-channel-user-status cusr)))))