Variable: erc-part-hook
erc-part-hook is a customizable variable defined in erc.el.gz.
Value
nil
Documentation
Hook run when processing a PART message directed at our nick.
Called in the server buffer with a single argument: the channel buffer
being parted. For historical reasons, the buffer argument may be nil if
it's been killed or otherwise can't be found. This typically happens
when the "PART" response being handled comes by way of a channel
buffer being killed, which, by default, tells erc-part-channel-on-kill
to emit a "PART". Users needing to operate on a parted channel buffer
before it's killed in this manner should use erc-kill-channel-hook and
condition their code on erc-killing-buffer-on-part-p being nil.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defcustom erc-part-hook nil
"Hook run when processing a PART message directed at our nick.
Called in the server buffer with a single argument: the channel buffer
being parted. For historical reasons, the buffer argument may be nil if
it's been killed or otherwise can't be found. This typically happens
when the \"PART\" response being handled comes by way of a channel
buffer being killed, which, by default, tells `erc-part-channel-on-kill'
to emit a \"PART\". Users needing to operate on a parted channel buffer
before it's killed in this manner should use `erc-kill-channel-hook' and
condition their code on `erc-killing-buffer-on-part-p' being nil."
:group 'erc-hooks
:type 'hook)