Function: erc-update-channel-topic

erc-update-channel-topic is a byte-compiled function defined in erc.el.gz.

Signature

(erc-update-channel-topic CHANNEL TOPIC &optional MODIFY)

Documentation

Find a buffer for CHANNEL and set the TOPIC for it.

If optional MODIFY is append or prepend, then append or prepend the TOPIC string to the current topic.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc-update-channel-topic (channel topic &optional modify)
  "Find a buffer for CHANNEL and set the TOPIC for it.

If optional MODIFY is `append' or `prepend', then append or prepend the
TOPIC string to the current topic."
  (erc-with-buffer (channel)
    (cond ((eq modify 'append)
           (setq erc-channel-topic (concat erc-channel-topic topic)))
          ((eq modify 'prepend)
           (setq erc-channel-topic (concat topic erc-channel-topic)))
          (t (setq erc-channel-topic topic)))
    (erc-update-mode-line-buffer (current-buffer))))