Function: erc-command-name

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

Signature

(erc-command-name CMD)

Documentation

For CMD being the function name of a ERC command, something like erc-cmd-FOO, this returns a string /FOO.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc-command-name (cmd)
  "For CMD being the function name of a ERC command, something like
erc-cmd-FOO, this returns a string /FOO."
  (let ((command-name (symbol-name cmd)))
    (if (string-match "\\`erc-cmd-\\(.*\\)\\'" command-name)
        (concat "/" (match-string 1 command-name))
      command-name)))