Function: erc-channel-p

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

Signature

(erc-channel-p CHANNEL)

Documentation

Return non-nil if CHANNEL seems to be an IRC channel name.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc-channel-p (channel)
  "Return non-nil if CHANNEL seems to be an IRC channel name."
  (cond ((stringp channel)
         (memq (aref channel 0) '(?# ?& ?+ ?!)))
        ((and (bufferp channel) (buffer-live-p channel))
         (with-current-buffer channel
           (erc-channel-p (erc-default-target))))
        (t nil)))