Function: erc-load-script

erc-load-script is a byte-compiled function defined in erc.el.gz.

Signature

(erc-load-script FILE)

Documentation

Load a script from FILE.

FILE must be the full name, it is not searched in the erc-script-path. If the filename ends with .el, then load it as an Emacs Lisp program. Otherwise, treat it as a regular IRC script.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc-load-script (file)
  "Load a script from FILE.

FILE must be the full name, it is not searched in the
`erc-script-path'.  If the filename ends with `.el', then load it
as an Emacs Lisp program.  Otherwise, treat it as a regular IRC
script."
  (erc-log (concat "erc-load-script: " file))
  (cond
   ((string-match "\\.el\\'" file)
    (load file))
   (t
    (erc-load-irc-script file))))