]> git.eshelyaron.com Git - emacs.git/commit
Make erc-update-channel-current-member stricter
authorF. Jason Park <jp@neverwas.me>
Fri, 29 Dec 2023 04:21:30 +0000 (20:21 -0800)
committerEshel Yaron <me@eshelyaron.com>
Tue, 2 Jan 2024 07:58:10 +0000 (08:58 +0100)
commitb10de5f186882e640a0ae2874b1fe6a6bcf1df5b
treee52831c28446e9c3f83a676578606885d6218445
parent9b7dc396f317b317af9b98ee5438a49d29be7946
Make erc-update-channel-current-member stricter

* lisp/erc/erc.el (erc--update-cusr-status-if-changed): Remove unused
macro.
(erc-update-current-channel-member): Redo doc string and abide by its
original language to the letter by not honoring a value of t for the
five channel-membership status parameters, even though this may break
user code that accidentally passes t instead of `on'.  Avoid double
lookup for nick in `erc-server-users'.  Rename some variables as per
recommended conventions for `erc-channel-user' objects.  Stash
downcased nick for further reuse.  Don't bother factoring in `addp' to
return value because `cusr-changed-p' is always non-nil when `addp'
is.

(cherry picked from commit 6c899525571749c29ec3e2826c4cc70b85b17db1)
lisp/erc/erc.el