; Handle authentication properly when reconnecting to IRC

* lisp/net/rcirc.el (rcirc-reconnect): Set 'rcirc-user-authenticated'
to nil before reconnecting.  (Bug#65882)
This commit is contained in:
Manphiz 2023-09-15 09:51:57 +02:00 committed by Philip Kaludercic
parent 842411f09b
commit a45d33d8aa

View file

@ -859,6 +859,7 @@ If QUIET is non-nil, no not emit a message."
(if (rcirc--connection-open-p process)
(throw 'exit (or quiet (message "Server process is alive")))
(delete-process process))
(setq rcirc-user-authenticated nil)
(let ((conn-info rcirc-connection-info))
(setf (nth 5 conn-info)
(cl-remove-if-not #'rcirc-channel-p