Page 1 of 1
Nick Limits
Posted: Fri Jun 25, 2004 4:56 pm
by Draegonis
Hola,
Apologies if i'm being terribly unobservant, but searching the manual, faq and forums returned nothing on this.
Is there any way to limit nick lengths?
Ta.
Posted: Fri Jun 25, 2004 6:46 pm
by jewles
Of course there is! however we at Unreal do not support modifying of any kind.
http://www.vulnscan.org/UnrealIrcd/faq/#40
Posted: Fri Jun 25, 2004 7:07 pm
by AngryWolf
Most likely the question was more than a simple "is there", maybe he wants to know what those ways are if they exist.
Of course the easiest way is to alter the ircd source, however that isn't supported, as others said. There are no better ones thought.
I don't know what your problem is with the current limitation that allows max. 30 characters in a nickname, but if that number is too high for you, I can show you a not very smart but effective way, and it doesn't even require you to modify the ircd source. Here's an example:
Code: Select all
ban nick
{
mask "?????*";
reason "Nicknames are not allowed to be more than 5 characters long.";
};
The only disadvantage of this is that it may produce tons of Q:Line notices on a big network.

Therefore you might want to get rid of the 'q' snomask.
Posted: Fri Jun 25, 2004 9:49 pm
by codemastr
Interesting idea using a ban nick...
The only disadvantage of this is that it may produce tons of Q:Line notices on a big network. Therefore you might want to get rid of the 'q' snomask.
You can work around that in 3.2 final. It introduced a new qline called a "hold." It is set by services with the TKL command. Basically it does:
TKL + Q H ?????* <nickname of setter> 0 <epoch time set at> :<reason>
The H indicates that it is a hold. When you add a hold, no Q:line notices are generated.
Posted: Sat Jun 26, 2004 2:57 am
by aquanight
@AngryWolf: actually, you need 6 ?s to make a max of 5, because * can mean 0 characters just as good as 1 ~ 25.
@codemastr: I expect, however, that this format is intended for things like NickServ holding a nick when it RECOVERs it.
Posted: Sat Jun 26, 2004 10:46 am
by AngryWolf
@aquanight: At first I thought the same, but after trying what ?????* does, I realized, it doesn't work the way we would expect:
*irc*> stats bannick
217 q:?????*:0:1088246723:server1.test.com:Nicknames
219 q : End of /STATS report
*irc*> nick abcde
*** test is now known as abcde
*irc*> nick abcdef
432 abcdef : Erroneous Nickname: Nicknames are not allowed to be more than 5 characters long.
@codemastr: Thanks for the idea, it's quite useful. :)
Posted: Sat Jun 26, 2004 6:19 pm
by codemastr
@codemastr: I expect, however, that this format is intended for things like NickServ holding a nick when it RECOVERs it.
Yes that's what it is intended for, but it seems to be suitable for this too :p
Posted: Sun Jun 27, 2004 4:21 pm
by Draegonis
Hmm, I see. Thanks folks.
