Small erc-kill-channel fix (bug#23700)
* lisp/erc/erc.el (erc-kill-channel): Handle null erc-default-target.
This commit is contained in:
parent
2d42bf7f5e
commit
4ad6be65f6
1 changed files with 4 additions and 3 deletions
|
@ -6735,9 +6735,10 @@ This function should be on `erc-kill-server-hook'."
|
|||
This function should be on `erc-kill-channel-hook'."
|
||||
(when (erc-server-process-alive)
|
||||
(let ((tgt (erc-default-target)))
|
||||
(erc-server-send (format "PART %s :%s" tgt
|
||||
(funcall erc-part-reason nil))
|
||||
nil tgt))))
|
||||
(if tgt
|
||||
(erc-server-send (format "PART %s :%s" tgt
|
||||
(funcall erc-part-reason nil))
|
||||
nil tgt)))))
|
||||
|
||||
;;; Dealing with `erc-parsed'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue