Function: erc-netsplit-mode
erc-netsplit-mode is an autoloaded, interactive and byte-compiled
function defined in erc-netsplit.el.gz.
Signature
(erc-netsplit-mode &optional ARG)
Documentation
Toggle ERC netsplit mode.
With a prefix argument ARG, enable netsplit if ARG is positive, and disable it otherwise. If called from Lisp, enable the mode if ARG is omitted or nil. This mode hides quit/join messages if a netsplit occurs.
Key Bindings
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)))