Function: erc-format-target-and/or-server

erc-format-target-and/or-server is a byte-compiled function defined in erc.el.gz.

Signature

(erc-format-target-and/or-server)

Documentation

Return the server name or the current target and server name combined.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc-format-target-and/or-server ()
  "Return the server name or the current target and server name combined."
  (let ((server-name (erc-shorten-server-name
                      (or erc-server-announced-name
                          erc-session-server))))
    (cond ((erc-default-target)
           (concat (erc-string-no-properties (erc-default-target))
                   "@" server-name))
          (server-name server-name)
          (t (buffer-name (current-buffer))))))