Function: erc-parse-prefix
erc-parse-prefix is a byte-compiled function defined in erc.el.gz.
Signature
(erc-parse-prefix)
Documentation
Return an alist of valid prefix character types and their representations.
For example, if the current ISUPPORT "PREFIX" is "(ov)@+",
return an alist equal to ((?v . ?+) (?o . ?@)). For historical
reasons, ensure the ordering of the returned alist is opposite
that of the advertised parameter.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc-parse-prefix ()
"Return an alist of valid prefix character types and their representations.
For example, if the current ISUPPORT \"PREFIX\" is \"(ov)@+\",
return an alist `equal' to ((?v . ?+) (?o . ?@)). For historical
reasons, ensure the ordering of the returned alist is opposite
that of the advertised parameter."
(let* ((str (or (erc--get-isupport-entry 'PREFIX t) "(qaohv)~&@%+"))
(i 0)
(j (string-search ")" str))
collected)
(when j
(while-let ((u (aref str (cl-incf i)))
((not (= ?\) u))))
(push (cons u (aref str (cl-incf j))) collected)))
collected))