[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Patch: Ident-Stuff included in bans
> 2.) Some networks (or all?) have limits. IRCNet is sometimes
> called SplitNet. And sometimes I like to call it LimitNet (eg:
> topics are limited to 80 characters). Usernames can be 10
> characters long (correct me if I'm wrong).
>
> test!masterofde@p0815.dialin.blah joins the channel. Banmask (ban
> type 2) would be *!*masterofde@*.dialin.blah but IRCNet only uses
> the 1st 10 characters ==> *!*masterofd@*.dialin.bla is the
> banmask.
StarChat's services do this too, stupidly enough. If you make a channel
restricted and someone joins, it bans *!*ident@*.blah.bla. If the username
is too long, it does exactly what you describe, and the user's auto-rejoin
is not blocked - the person bounces in and out of the channel until
someone sets a proper ban or they close their client (or someone kills
them).
> 2.) Find out the maximum size of a username in the current
> network. Write some code which cuts the mask corresponding to
> this size (eg: *!*asterofde@*.dialin.blah). Use the old behavior
> for short usernames (eg: *!~x@*.dip.t-dialin.net insted of
> *!*x@*.dip.t-dialin.net).
The problems with this, however, is how -do- you find out the maximum size
without setting an absurdly long username and trying to log on? Do you do
this every time around? Do you get banned for cloning, or force the client
to connect twice (connection flooding?).
It'd be nice if there was some sort of LIMIT command on the server that
would print out different fields and their limits - nick, ident, host
(StarChat's IRCd uses the IP if the host is obscenely long), message,
topic, notice, kick, quit, stuff like that. Clients could send '/limit' to
the server, get back the responces, and widgets could be set to only allow
topics of a certain length, people could turn on options to not /nick if
the nick is too long, and so on.
*sigh* It'll never happen.
I think the safest assumption would be to use *ident for idents < 8 chars,
and *dent for idents > 8 chars. That's just MHO though.
--Dan
-
XChat-discuss: mailing list for XChat users
Archive: http://mail.nl.linux.org/xchat-discuss/
Posted By: <sentry21@cdslash.net>