erc-kill-server-hook

erc-kill-server-hook is a variable defined in `erc.el'.
Its value is
(erc-kill-server)

  • This variable may be risky if used as a file-local variable.

Documentation:
Invoked whenever a server buffer is killed via `kill-buffer'.

You can customize this variable.