[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: |
Artur Malabarba |
Subject: |
Re: PATCH: Add the ability to give rcirc servers an alias name |
Date: |
Sun, 08 Nov 2015 19:22:49 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Dave Barker <address@hidden> writes:
> 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 )
Hi Dave,
Your patch looks fine to me, but I'm not familiar with rcirc code.
Therefore. I've CC'd here Leo and Ryan who are listed as rcirc
maintainers in the file.
>
> 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.