]> git.eshelyaron.com Git - emacs.git/commitdiff
Save the server alias on reconnect (Bug#29657)
authorMiciah Masters <miciah.masters@gmail.com>
Mon, 11 Dec 2017 01:14:09 +0000 (20:14 -0500)
committerNoam Postavsky <npostavs@gmail.com>
Wed, 11 Jul 2018 03:10:53 +0000 (23:10 -0400)
rcirc does not retain the server alias on reconnect.  As a result, rcirc
fails to re-use server and channel buffers when an alias is used.  Further
problems may ensue when aliases are used to differentiate multiple
connections to the same host, for example when using a single IRC bouncer
or proxy to connect to multiple IRC networks.

Save the server alias when connecting to a server so that reconnect will
retain the alias.
* lisp/net/rcirc.el (rcirc-connect): Include server-alias when setting
rcirc-connection-info.

Copyright-paperwork-exempt: yes

lisp/net/rcirc.el

index 5acbec7dcb4be0650a3993daa4d930cac287845f..c09bff765b22992d90766809bf0abeb419a37c0b 100644 (file)
@@ -585,7 +585,7 @@ If ARG is non-nil, instead prompt for connection parameters."
 
       (setq-local rcirc-connection-info
                  (list server port nick user-name full-name startup-channels
-                       password encryption))
+                       password encryption server-alias))
       (setq-local rcirc-process process)
       (setq-local rcirc-server server)
       (setq-local rcirc-server-name