Function: erc--target-from-string

erc--target-from-string is a byte-compiled function defined in erc.el.gz.

Signature

(erc--target-from-string STRING)

Documentation

Construct an erc--target variant from STRING.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc--target-from-string (string)
  "Construct an `erc--target' variant from STRING."
  (funcall (if (erc-channel-p string)
               (if (erc--valid-local-channel-p string)
                   #'make-erc--target-channel-local
                 #'make-erc--target-channel)
             #'make-erc--target)
           :string string :symbol (intern (erc-downcase string))))