Function: erc-format-@nick
erc-format-@nick is a byte-compiled function defined in erc.el.gz.
This function is obsolete since 30.1; see option
erc-show-speaker-membership-status
Signature
(erc-format-@nick &optional USER CHANNEL-DATA)
Documentation
Format the nickname of USER showing if USER has a voice, is an
operator, half-op, admin or owner. Owners have "~", admins have
"&", operators have "@" and users with voice have "+" as a
prefix. Use CHANNEL-DATA to determine op and voice status.
Probably introduced at or before Emacs version 24.5.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc-format-@nick (&optional user channel-data)
"Format the nickname of USER showing if USER has a voice, is an
operator, half-op, admin or owner. Owners have \"~\", admins have
\"&\", operators have \"@\" and users with voice have \"+\" as a
prefix. Use CHANNEL-DATA to determine op and voice status."
(declare (obsolete "see option `erc-show-speaker-membership-status'" "30.1"))
(when user
(let ((nick (erc-server-user-nickname user)))
(if (not erc--speaker-status-prefix-wanted-p)
(prog1 nick
(setq erc--speaker-status-prefix-wanted-p 'erc-format-@nick))
(concat (propertize
(erc-get-channel-membership-prefix channel-data)
'font-lock-face 'erc-nick-prefix-face)
nick)))))