]> git.eshelyaron.com Git - emacs.git/commit
Normalize ISUPPORT params with empty values in ERC
authorF. Jason Park <jp@neverwas.me>
Mon, 12 Feb 2024 01:15:14 +0000 (17:15 -0800)
committerEshel Yaron <me@eshelyaron.com>
Sat, 17 Feb 2024 13:02:45 +0000 (14:02 +0100)
commitb090d4b7e10e4342ed0c73caac78c8c5da7a5028
tree3fc86a499fb8e10e9f52072785ac8a669f1f1645
parentb5f81dca8d8c8fb17d88a08e7b0fe8ebf6fc9e9b
Normalize ISUPPORT params with empty values in ERC

* lisp/erc/erc-backend.el (erc-server-parameters)
(erc--isupport-params): Mention parsing and storage behavior regarding
nonstandard "FOO=" tokens.
(erc--parse-isupport-value): Move comment closer to code.
(erc--get-isupport-entry): Treat the empty string as truly null, as
prescribed by the Brocklesby draft cited in the top-level comment.
* test/lisp/erc/erc-tests.el (erc--get-isupport-entry): Add case for
the empty string appearing as a value for an `erc-server-parameters'
item.
(erc-server-005): Assert compat-related behavior of retaining the
empty string as a valid value from a raw "FOO=" token.
(Bug#67220)

(cherry picked from commit 25d15391f2683ea95c4d7ee291fb82e0c9858d73)
lisp/erc/erc-backend.el
test/lisp/erc/erc-tests.el