]> git.eshelyaron.com Git - emacs.git/commit
Don't set erc-networks--id until network is known
authorF. Jason Park <jp@neverwas.me>
Sun, 13 Nov 2022 09:52:48 +0000 (01:52 -0800)
committerAmin Bandali <bandali@gnu.org>
Thu, 24 Nov 2022 00:54:40 +0000 (19:54 -0500)
commitda30a4908ec1482c6d86150a197655fb99f8d68a
treeade6099c8745c3cfe55e9f74cb8069240dedc820
parent71397175aaa51571ba89a2ebf147ae833da5decf
Don't set erc-networks--id until network is known

* lisp/erc/erc-networks.el (erc-networks--id-given): Accept a null
argument.
(erc-networks--id-on-connect): Remove unused function.
(erc-networks--id-equal-p): Add method for comparing initialized and
unset IDs.
(erc-networks--update-server-identity): Ensure `erc-networks--id' is
set before continuing search.
(erc-networks--init-identity): Don't assume `erc-networks--id' is
non-nil.  Add branch condition to reload ID on non-nil case.
(erc-networks-on-MOTD-end): Let init-ID function handle renaming of
server buffer.

* lisp/erc/erc.el (erc-open): For continued sessions, try copying over
the last network ID.
(erc--auth-source-determine-params-default): Don't expect a network ID
to have been initialized.
(erc-set-current-nick): When connected, reload network ID.  Leave
comment warning that it may be unneeded.

* lisp/erc/erc-backend.el (erc-server-NICK, erc-server-433): Unless
already connected, schedule ID reload when server rejects or mandates
a nick change.

* test/lisp/erc/erc-scenarios-base-association-nick.el
(erc-scenarios-base-association-nick-bumped,
erc-scenarios-base-association-nick-bumped-mandated-renick): Update to
reflect more liberal association behavior when renamed by IRCd.
lisp/erc/erc-backend.el
lisp/erc/erc-networks.el
lisp/erc/erc.el
test/lisp/erc/erc-scenarios-base-association-nick.el