[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PATCH: Add the ability to give rcirc servers an alias name

From: Dave Barker
Subject: Re: PATCH: Add the ability to give rcirc servers an alias name
Date: Sun, 8 Nov 2015 17:45:59 +0000

Second try, reconnecting to servers now works again and the proper server names are displayed.

(Also I forgot to mention before, patch applies to ea88d874a4f3ecbfdb5fa79dcb3ea90927cebec2 )

Cheers, Dave.

On Sat, Nov 7, 2015 at 11:00 PM, Dave Barker <address@hidden> wrote:
Hello all,

First time contributing to Emacs (or at least attempting to), sorry if I'm doing this wrong somehow.

I wanted the ability to give rcirc servers an alias name, to be displayed instead of the actual server name. The reason is that I use the ZNC IRC bouncer to connect to multiple servers and this means, as far as rcirc is concerned, that I have 4+ servers with the same server name - my ZNC server's hostname. This breaks rcirc, it won't let you connect to the same server twice, but even if it did things would quickly get confusing. (Up until now I've had to add bogus entries in my hosts file to point each IRC server's hostname to my ZNC server, but that's clearly quite a hack!)

So the attached patch adds an optional :server-alias keyword parameter to rcirc-server-alist that allows you to specify a friendlier name for a rcirc server. The name is then used when messages are displayed, and for buffer naming purposes. If not specified the real server name is used instead just like before. (For people who are used to GitHub, here's my feature branch.)

It would be great to get some feedback on this, the patch is working great for me but I'm inexperienced with elisp and this is the first time I've had a look at the rcirc code.

Cheers, Dave.

Attachment: 0001-Add-ability-to-give-rcirc-servers-an-alias-name.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]