Function: erc-cmd-RECONNECT

erc-cmd-RECONNECT is a byte-compiled function defined in erc.el.gz.

Signature

(erc-cmd-RECONNECT [CANCEL [-A]])

Documentation

Try reconnecting to the current IRC server.

Alternatively, CANCEL a scheduled attempt for either the current connection or, with -A, all applicable connections.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc-cmd-RECONNECT (&rest args)
  "Try reconnecting to the current IRC server.
Alternatively, CANCEL a scheduled attempt for either the current
connection or, with -A, all applicable connections.

\(fn [CANCEL [-A]])"
  (pcase args
    (`("cancel" "-a") (erc-buffer-filter #'erc--cancel-auto-reconnect-timer))
    (`("cancel") (erc-with-server-buffer (erc--cancel-auto-reconnect-timer)))
    (_ (erc--cmd-reconnect))))