Function: erc--user-modes
erc--user-modes is a byte-compiled function defined in erc.el.gz.
Signature
(erc--user-modes &optional AS-TYPE)
Documentation
Return user "MODE" letters in a form described by AS-TYPE.
When AS-TYPE is the symbol strings (plural), return a list of
strings. When it's string (singular), return the same list
concatenated into a single string. When AS-TYPE is nil, return a
list of chars.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc--user-modes (&optional as-type)
"Return user \"MODE\" letters in a form described by AS-TYPE.
When AS-TYPE is the symbol `strings' (plural), return a list of
strings. When it's `string' (singular), return the same list
concatenated into a single string. When AS-TYPE is nil, return a
list of chars."
(let ((modes (or erc--user-modes (erc-with-server-buffer erc--user-modes))))
(pcase as-type
('strings (mapcar #'char-to-string modes))
('string (apply #'string modes))
(_ modes))))