erc-kill-buffer-function

erc-kill-buffer-function is a compiled Lisp function in `erc.el'.

(erc-kill-buffer-function)

Function to call when an ERC buffer is killed.
This function should be on `kill-buffer-hook'.
When the current buffer is in `erc-mode', this function will run
one of the following hooks:
`erc-kill-server-hook' if the server buffer was killed,
`erc-kill-channel-hook' if a channel buffer was killed,
or `erc-kill-buffer-hook' if any other buffer.