Function: erc-server-or-unjoined-channel-buffer-p
erc-server-or-unjoined-channel-buffer-p is a byte-compiled function
defined in erc.el.gz.
Signature
(erc-server-or-unjoined-channel-buffer-p &optional BUFFER)
Documentation
Return non-nil if argument BUFFER is an ERC server buffer.
If BUFFER is nil, use the current buffer. For historical reasons, also return non-nil for channel buffers the client has parted or been kicked from.
Aliases
erc-server-buffer-p (obsolete since 30.1)
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc-server-or-unjoined-channel-buffer-p (&optional buffer)
"Return non-nil if argument BUFFER is an ERC server buffer.
If BUFFER is nil, use the current buffer. For historical
reasons, also return non-nil for channel buffers the client has
parted or been kicked from."
(with-current-buffer (or buffer (current-buffer))
(and (eq major-mode 'erc-mode)
(null (erc-default-target)))))