Function: erc-command-indicator

erc-command-indicator is a byte-compiled function defined in erc-goodies.el.gz.

Signature

(erc-command-indicator)

Documentation

Return the command-indicator prompt as a string.

Do nothing if the variable erc-command-indicator(var)/erc-command-indicator(fun) is nil.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc-goodies.el.gz
(defun erc-command-indicator ()
  "Return the command-indicator prompt as a string.
Do nothing if the variable `erc-command-indicator' is nil."
  (and erc-command-indicator
       (let ((prompt (if (functionp erc-command-indicator)
                         (funcall erc-command-indicator)
                       erc-command-indicator)))
         (concat prompt (and (not (string-empty-p prompt))
                             (not (string-suffix-p " " prompt))
                             " ")))))