aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorF. Jason Park2022-12-12 23:58:03 -0800
committerF. Jason Park2022-12-14 06:40:55 -0800
commit102a3e3b445d96e5a74a3ec32b2a2b701b80819e (patch)
treeaec20825d617f64062cc9080d9d6c85df2367f0c /test
parentf0c908887815a9cc668a5a03cbc1b7d6eaf8c91d (diff)
downloademacs-102a3e3b445d96e5a74a3ec32b2a2b701b80819e.tar.gz
emacs-102a3e3b445d96e5a74a3ec32b2a2b701b80819e.zip
Don't send erc-sasl-user as USER command argument
* lisp/erc/erc-sasl.el (erc-sasl--send-cap-ls): Add internal switch for sending an opening "CAP LS". The rationale for not enabling this by default is twofold: one, it more strongly implies that ERC supports IRCv3 client capability negotiation, which is somewhat disingenuous; and, two, We'd still be "faking it" by firing and forgetting, and more balls in the air makes things less predictable. (erc--register-connection): Possibly send a "CAP LS" before anything depending on the value of `erc-sasl--send-cap-ls'. Also, don't attempt to send `erc-session-username' when it holds an SASL username because the latter may contain protocol-defying characters. * test/lisp/erc/resources/base/local-modules/fourth.eld: change user parameter of "USER" command to reflect nick when `erc-sasl-user' is set to `:user'. (Bug#59976.)
Diffstat (limited to 'test')
-rw-r--r--test/lisp/erc/resources/base/local-modules/fourth.eld2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lisp/erc/resources/base/local-modules/fourth.eld b/test/lisp/erc/resources/base/local-modules/fourth.eld
index fd6d62b6cc2..4ac5dcbd38b 100644
--- a/test/lisp/erc/resources/base/local-modules/fourth.eld
+++ b/test/lisp/erc/resources/base/local-modules/fourth.eld
@@ -1,7 +1,7 @@
1;; -*- mode: lisp-data; -*- 1;; -*- mode: lisp-data; -*-
2((cap 10 "CAP REQ :sasl")) 2((cap 10 "CAP REQ :sasl"))
3((nick 10 "NICK tester`")) 3((nick 10 "NICK tester`"))
4((user 10 "USER tester 0 * :tester")) 4((user 10 "USER tester` 0 * :tester"))
5 5
6((authenticate 10 "AUTHENTICATE PLAIN") 6((authenticate 10 "AUTHENTICATE PLAIN")
7 (0.0 ":irc.foonet.org CAP * ACK sasl") 7 (0.0 ":irc.foonet.org CAP * ACK sasl")