]> git.eshelyaron.com Git - emacs.git/commitdiff
; Handle authentication properly when reconnecting to IRC
authorManphiz <manphiz@gmail.com>
Fri, 15 Sep 2023 07:51:57 +0000 (09:51 +0200)
committerPhilip Kaludercic <philipk@posteo.net>
Sat, 23 Sep 2023 12:54:26 +0000 (14:54 +0200)
* lisp/net/rcirc.el (rcirc-reconnect): Set 'rcirc-user-authenticated'
to nil before reconnecting.  (Bug#65882)

lisp/net/rcirc.el

index 1ddffe8dec99afa9024e6a2a5b73f6a3ed0880d9..b293a4a442f32c210c12c3a37fdf6909e368ce9f 100644 (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