Function: erc-part-channel-on-kill

erc-part-channel-on-kill is a byte-compiled function defined in erc.el.gz.

Signature

(erc-part-channel-on-kill)

Documentation

Send a "PART" when killing a channel buffer.

Aliases

erc-kill-channel (obsolete since 30.1)

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc-part-channel-on-kill ()
  "Send a \"PART\" when killing a channel buffer."
  (when (and (not erc-killing-buffer-on-part-p)
             (not erc-networks--target-transplant-in-progress-p)
             (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)))))