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

Re: nick collide prevention ideas



Q wrote:
> 
> Piotr Kucharski wrote:
> >
> > On Wed, Jul 07, 1999 at 08:52:42PM +0200, Q wrote:
> > > You probably want to make sure that if someone with an uid splits, and
> > > that uid comes back, it's the same person. This would make it easier for
> > > users.
> >
> > Of course. Seems like you're missing the point, that uID consist of
> > sID (which is constant) and cID (which is counter increased each
> > client connects). As I wrote earlier, with 44^5 cID and 1 client
> > connecting every second to ircd server, we have to wait 5.2 years
> > for cID to be reused.
> >
> > > What are you going to do then? keep a counter, and store the last one
> > > used at certain times (like every 1000). And then next time start with
> > > an high enough number. What in case the file is lost?
> >
> > I don't get it.
> 
> You want to make sure that nobody can use an uid (cid part) that someone
> used before, right? This means after you crashed too. So you have to
> keep track where you are.

Btw: I think this is the best way of doing it, if you want to do it.



Q