Variable: erc-disconnected-hook

erc-disconnected-hook is a customizable variable defined in erc.el.gz.

Value

nil

Documentation

Run this hook with arguments (NICK IP REASON) when disconnected.

This happens before automatic reconnection. Note, that erc-server-QUIT-functions might not be run when we disconnect, simply because we do not necessarily receive the QUIT event.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defcustom erc-disconnected-hook nil
  "Run this hook with arguments (NICK IP REASON) when disconnected.
This happens before automatic reconnection.  Note, that
`erc-server-QUIT-functions' might not be run when we disconnect,
simply because we do not necessarily receive the QUIT event."
  :group 'erc-hooks
  :type 'hook)