Variable: erc-netsplit-mode-hook

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

Value

nil

Documentation

Hook run after entering or leaving erc-netsplit-mode(var)/erc-netsplit-mode(fun).

No problems result if this variable is not bound. add-hook automatically binds it. (This is true for all hook variables.)

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc-netsplit.el.gz
;;;###autoload(autoload 'erc-netsplit-mode "erc-netsplit")
(define-erc-module netsplit nil
  "This mode hides quit/join messages if a netsplit occurs."
  ((erc-netsplit-install-message-catalogs)
   (add-hook 'erc-server-JOIN-functions #'erc-netsplit-JOIN)
   (add-hook 'erc-server-MODE-functions #'erc-netsplit-MODE)
   (add-hook 'erc-server-QUIT-functions #'erc-netsplit-QUIT)
   (add-hook 'erc-timer-hook #'erc-netsplit-timer))
  ((remove-hook 'erc-server-JOIN-functions #'erc-netsplit-JOIN)
   (remove-hook 'erc-server-MODE-functions #'erc-netsplit-MODE)
   (remove-hook 'erc-server-QUIT-functions #'erc-netsplit-QUIT)
   (remove-hook 'erc-timer-hook #'erc-netsplit-timer)))