all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Miciah Dashiel Butler Masters <miciah.masters@gmail.com>
To: 29657@debbugs.gnu.org
Subject: bug#29657: rcirc does not retain the server alias on reconnect
Date: Mon, 11 Dec 2017 01:39:02 +0000	[thread overview]
Message-ID: <CAN9avhUP+cPh6J5TpWM5wBMXkjS354VevxLaH31iffszj4GLiw@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 464 bytes --]

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.

The attached patch modifies rcirc to save the server alias when connecting
to a server so that reconnect will retain the alias.

[-- Attachment #1.2: Type: text/html, Size: 523 bytes --]

[-- Attachment #2: 0001-Save-the-server-alias-on-reconnect.patch --]
[-- Type: text/x-patch, Size: 1297 bytes --]

From 64d286fb94c29cbda684741ae77f11c0734803ab Mon Sep 17 00:00:00 2001
From: Miciah Masters <miciah.masters@gmail.com>
Date: Sun, 10 Dec 2017 20:14:09 -0500
Subject: [PATCH] Save the server alias on reconnect

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.
---
 lisp/net/rcirc.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el
index 3b6b6c8c80..2dd80f49a6 100644
--- a/lisp/net/rcirc.el
+++ b/lisp/net/rcirc.el
@@ -585,7 +585,7 @@ rcirc-connect
 
       (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
-- 
2.11.0.258.ge05806d


             reply	other threads:[~2017-12-11  1:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-11  1:39 Miciah Dashiel Butler Masters [this message]
2018-07-11  3:14 ` bug#29657: rcirc does not retain the server alias on reconnect Noam Postavsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAN9avhUP+cPh6J5TpWM5wBMXkjS354VevxLaH31iffszj4GLiw@mail.gmail.com \
    --to=miciah.masters@gmail.com \
    --cc=29657@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.