erc-kill-channel-hook

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

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

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

You can customize this variable.