[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Prevent ERC from sending spurious PART messages
From: |
Andreas Schwab |
Subject: |
Re: [PATCH] Prevent ERC from sending spurious PART messages |
Date: |
Fri, 31 Mar 2017 00:02:53 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
On Mär 30 2017, "Victor J. Orlikowski" <address@hidden> wrote:
> diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el
> index 488404d..357d03c 100644
> --- a/lisp/erc/erc.el
> +++ b/lisp/erc/erc.el
> @@ -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))))
> + (unless (not tgt)
(unless (not)) == (when)
Andreas.
--
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."