Function: erc--format-modes
erc--format-modes is a byte-compiled function defined in erc.el.gz.
Signature
(erc--format-modes &optional NO-QUERY-P)
Documentation
Return a string of channel modes in channels and user modes elsewhere.
With NO-QUERY-P, return nil instead of user modes in query buffers. Also return nil when mode information is unavailable.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc--format-modes (&optional no-query-p)
"Return a string of channel modes in channels and user modes elsewhere.
With NO-QUERY-P, return nil instead of user modes in query
buffers. Also return nil when mode information is unavailable."
(cond ((erc--target-channel-p erc--target)
(erc--channel-modes 'string))
((not (and erc--target no-query-p))
(erc--format-user-modes))))