]> git.eshelyaron.com Git - emacs.git/commit
Add hook to regain nickname in ERC
authorF. Jason Park <jp@neverwas.me>
Fri, 7 Apr 2023 01:41:06 +0000 (18:41 -0700)
committerF. Jason Park <jp@neverwas.me>
Sat, 8 Apr 2023 21:23:50 +0000 (14:23 -0700)
commit8c0c98268440b27a77faf30738dfd72c909bb33f
tree3ffaf0c484c1f0526b26638e8a03289338c0321b
parent03eddc99242bb430a82f468251ed76602d457702
Add hook to regain nickname in ERC

* lisp/erc/erc-backend.el (erc-server-reconnect-timeout): Mention
`erc-nickname-in-use-functions' in doc string.
* lisp/erc/erc.el (erc-nickname-in-use-functions,
erc-regain-nick-on-connect): Add abnormal hook and possible value to
handle stale connections preventing a desired nick from being reissued
by the server.  Follows directly from bug#62044.
(erc-nickname-in-use): Call `erc-nickname-in-use-functions'.
* test/lisp/erc/erc-scenarios-base-renick.el
(erc-scenarios-base-renick-auto-regain): New test.
* test/lisp/erc/resources/base/renick/regain/normal-again.eld: New file.
* test/lisp/erc/resources/base/renick/regain/normal.eld: New file.
lisp/erc/erc-backend.el
lisp/erc/erc.el
test/lisp/erc/erc-scenarios-base-renick.el
test/lisp/erc/resources/base/renick/regain/normal-again.eld [new file with mode: 0644]
test/lisp/erc/resources/base/renick/regain/normal.eld [new file with mode: 0644]