[Gossip-dev] New IRC account widget
Guillaume Desmottes
cass at skynet.be
Fri Jan 26 11:51:19 CET 2007
On ven, 2007-01-26 at 09:38 +0000, Martyn Russell wrote:
> Yes, I think this makes sense. It also makes me think that perhaps we
> should have something similar for Jabber. I recall that Jabber has a
> list of servers available from http://www.jabber.org/servers.xml
>
> Does IRC have some central place that does this too?
>
Not in my knowledge. Xchat have a good list, I suppose we could use it.
> > I also need a way to retrieve the network associated with a specific
> > idle account (for editing purpose mainly).
> > I see at least 2 ways to do that:
> >
> > - For each idle accounts, we add in accounts.xml something (a new
> > markup, an attribute...) containing the ID of the network associated.
> > It's the more natural solution but we have to add an IRC specific
> > option. I'm not sure if it's a big problem or not.
> Yes, this is a good way to do it to keep things separate. I think your
> XML file for IRC could be next to accounts.xml as something like
> servers-irc.xml?
>
Yes, that's the idea. :)
> > - We don't modify accounts.xml and search the network using the server
> > recorded in accounts.xml.
>
> I am not sure what you mean here. If we don't modify accounts.xml, what
> is it we are using in accounts.xml to search the network for servers
> with? Also, how do you search the network? is this some IRC thing?
>
In fact there are some questions than we have to answer.
Should Gossip manage multi servers (If the first server doesn't respond,
try the second..)?
If yes, we need to do deep modifications in accounts.xml and gossip's
connection code. We remove all connections informations from
accounts.xml (only for idle accounts of course) and add the id of the
network to establish the mapping with servers-irc.xml.
Most powerful solution but require a lot of IRC specific modifications.
I'm not sure that's a good idea.
If not we can just copy parameters of the first server of the network in
accounts.xml. So connection is still managed as any other account.
But we still need to have a way to find the network associated with a
specific account. Not for connection purpose but for the accounts dialog
(we have to know that an account foo is using FreeNode for example).
So, do we want to modify accounts.xml to map an idle account with an IRC
network?
If yes, we can add a markup or attribute containing the id (from
servers-irc.xml) of the network.
If not, we could find the network using the server recorded in
accounts.xml.
Hope it's clear now. :)
G.
--
Guillaume Desmottes <cass at skynet.be>
Jabber <cassidy at jabber.belnet.be>
GPG 1024D/711E31B1 | 1B5A 1BA8 11AA F0F1 2169 E28A AC55 8671 711E 31B1
More information about the Gossip-dev
mailing list