Function: erc-default-target
erc-default-target is a byte-compiled function defined in erc.el.gz.
Signature
(erc-default-target)
Documentation
Return the current channel or query target, if any.
For historical reasons, return nil in channel buffers if not currently joined.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc-default-target ()
"Return the current channel or query target, if any.
For historical reasons, return nil in channel buffers if not
currently joined."
(let ((tgt (car erc-default-recipients)))
(cond
((not tgt) nil)
((listp tgt) (cdr tgt))
(t tgt))))