Function: erc-cmd-APPENDTOPIC

erc-cmd-APPENDTOPIC is a byte-compiled function defined in erc.el.gz.

Signature

(erc-cmd-APPENDTOPIC TOPIC)

Documentation

Append TOPIC to the current channel topic, separated by a space.

Aliases

erc-cmd-AT

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc-cmd-APPENDTOPIC (topic)
  "Append TOPIC to the current channel topic, separated by a space."
  (let ((oldtopic erc-channel-topic))
    ;; display help when given no arguments
    (when (string-match "^\\s-*$" topic)
      (signal 'wrong-number-of-arguments nil))
    ;; strip trailing ^O
    (when (string-match "\\(.*\\)\C-o" oldtopic)
      (erc-cmd-TOPIC (concat (match-string 1 oldtopic) topic)))))