[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 2 Questions for the server guru's <G>
On Mon, 26 Oct 1998, Matthew Sullivan wrote:
> Thanx this is exactly the info I needed, though it prompts another question:
>
> However the deturmining of the token is what I need to do, if you hadn't
> guessed (and i didn't say) I am rewriting Services 3.1.2 to work with IRCd
> 2.9+ so far everything is working well, and nearly all of it works without
> error. However how do I deturmine the server token, as the services are a
> 'virtual server' and just create users/service names (same as DALnet
> services), the services 'virtual server' joins, do I (as the services) force
> a server token or does the server I am linking to create the token for me?
> PS I thought I got the syntax right, but it's the token I obviously am not
> getting right, hence the errors on the uplink. 8-)
Well, all the info was there, you just need to combine it:
SERVER irc.dknet.dk 1 :Copenhagen, Denmark
:irc.dknet.dk SERVER sunsite.auc.dk 2 47 :SunSITE Denmark, Aalborg University
:sunsite.auc.dk SERVER irc2.sci.kun.nl 3 2 :University of Nijmegen, The Netherlands
:irc2.sci.kun.nl SERVER irc.sci.kun.nl 4 3 :University of Nijmegen, The Netherlands
:irc2.sci.kun.nl SERVER *.be 4 4 :[ircd.belnet.be] BELNET routing server, Brussels
:*.be SERVER irc.skybel.net 5 5 :Skynet SA/NV IRC Server
Taken from this, these are the tokens irc.dknet.dk uses when talking to
"me":
token name distance
1 irc.dknet.dk 1
47 sunsite.auc.dk 2
2 irc2.sci.kun.nl 3
3 irc.sci.kun.nl 4
4 *.be 4
5 irc.skybel.net 5
From this the service/ircd builds a nice list so that when it gets a user:
NICK Null 1 robert irc.dknet.dk 1 +oiw :Would you like to know more ?
it sees the token ^ and sees that Null uses irc.dknet.dk.
Since it has the token, it can from here also deduct the distance
(actually just stores a pointer to the client's server structure, which
you might want to do too)
(more at the bottom)
> >NICK <nick> <distance> <u> <h> <irc-server-token> <usermodes> :<realname>
> >
> >The irc-server-token is taken from the SERVER command which looks like
> >this:
> >
> >:<originator> SERVER <server> <distance> <token> :<text>
> >
> >The ":<originator>" and "<token>" fields aren't there for the first
> >SERVER-line you get on a new link.
except that I was wrong.. it's the distance you haven't got.. the token is
there of course.
-- Robert Martin-Legène / Null ! robert@xxxxxxxxxxxx