]> git.eshelyaron.com Git - emacs.git/commit
Populate erc--msg-prop-overrides for CTCP replies
authorF. Jason Park <jp@neverwas.me>
Mon, 18 Dec 2023 05:49:13 +0000 (21:49 -0800)
committerEshel Yaron <me@eshelyaron.com>
Sun, 24 Dec 2023 16:07:19 +0000 (17:07 +0100)
commitde7d6f495b9aff6bf4fc308aa7361abbfa8835c2
treee4efab4b5d0d4350b013859d90e70bae31a86778
parent6e1f3c3f3134616b54689d8df6a1fc6d97e42795
Populate erc--msg-prop-overrides for CTCP replies

* lisp/erc/erc-backend.el (erc-server-PRIVMSG): Don't set string
intended for insertion to the undefined return value of
`erc-process-ctcp-reply' and `erc-process-ctcp-query'.  Rework control
flow slightly for clarity.
* lisp/erc/erc.el (erc-process-ctcp-reply): Bind
`erc--msg-prop-overrides' and populate with `erc--ctcp' and `erc--cmd'
"msg props" for the benefit of `erc-display-message' calls made by
the various CTCP reply handlers.  (Bug#67677)

(cherry picked from commit 23d692ed0149e9cda327141082cafdba1e1266fe)
lisp/erc/erc-backend.el
lisp/erc/erc.el