]> git.eshelyaron.com Git - emacs.git/commit
Respect a nil erc-session-password when reconnecting
authorF. Jason Park <jp@neverwas.me>
Sat, 3 Dec 2022 07:11:24 +0000 (23:11 -0800)
committerF. Jason Park <jp@neverwas.me>
Wed, 14 Dec 2022 14:40:55 +0000 (06:40 -0800)
commit0155fc67be393239e5a2956d5dfaf6a0f74b517e
treec36c226ef68dad55b76648ab97724a0f20de84fa
parent9ac80e8a6e4969cfe88d5233dc4152bbfa46c848
Respect a nil erc-session-password when reconnecting

* lisp/erc/erc.el (erc-open): Simplify `old-vars' expression.
(erc--compute-server-password): Only compute a server password when
first connecting.  For compatibility, this respects third-party code
that expects session passwords in target buffers when initially
non-nil.
* test/lisp/erc/erc-scenarios-services-misc.el
(erc-scenarios-services-auth-source-reconnect): Add new test.
* test/lisp/erc/resources/services/auth-source/recon.eld: Add new test
data file.  (Bug#59858.)
lisp/erc/erc.el
test/lisp/erc/erc-scenarios-services-misc.el
test/lisp/erc/resources/services/auth-source/recon.eld [new file with mode: 0644]