Function: erc-sasl--mechanism-offered-p
erc-sasl--mechanism-offered-p is a byte-compiled function defined in
erc-sasl.el.gz.
Signature
(erc-sasl--mechanism-offered-p OFFERED)
Documentation
Return non-nil when OFFERED appears among a list of mechanisms.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc-sasl.el.gz
(defun erc-sasl--mechanism-offered-p (offered)
"Return non-nil when OFFERED appears among a list of mechanisms."
(string-match-p (rx-to-string
`(: (| bot ",")
,(symbol-name (alist-get 'mechanism erc-sasl--options))
(| eot ",")))
(downcase offered)))