Function: erc-kill-channel
erc-kill-channel is a byte-compiled function defined in erc.el.gz.
Signature
(erc-kill-channel)
Documentation
Sends a PART command to the server when the channel buffer is killed.
This function should be on erc-kill-channel-hook.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc-kill-channel ()
"Sends a PART command to the server when the channel buffer is killed.
This function should be on `erc-kill-channel-hook'."
(when (erc-server-process-alive)
(let ((tgt (erc-default-target)))
(if tgt
(erc-server-send (format "PART %s :%s" tgt
(funcall erc-part-reason nil))
nil tgt)))))