Page 1 of 1
NICNAME
Posted: Tue May 02, 2006 3:38 pm
by Bronx AnarchY
I want, disable for short nick, exp : bo
Posted: Tue May 02, 2006 3:49 pm
by aquanight
Well, firstly I'd have to say, define "short" (1 letter, 2 letters, 5 letters, etc).
Assuming just one or two letters you could do:
Code: Select all
spamfilter {
regex "^.{1,2}!.*";
target { user; };
action block;
reason "Nick too short. Pick a longer nick.";
};
thnx
Posted: Tue May 02, 2006 4:56 pm
by Bronx AnarchY
thnx
Posted: Tue May 02, 2006 11:25 pm
by Stealth
Spamfilter was not designed for this, Unreal already has a feature that can be used. Use the ban nick block:
Code: Select all
ban nick {
mask "?";
reason "Nick too short";
};
ban nick {
mask "??";
reason "Nick too short";
};
ban nick {
mask "???";
reason "Nick too short";
};
Those will block nicks that have 1 2 or 3 characters, but will allow longer nicks. To add more, just increase the question marks.
Posted: Tue May 02, 2006 11:35 pm
by aquanight
Except the conf gets excessively large when you want to require, say, minimum of 6.
Posted: Wed May 03, 2006 2:33 pm
by JanisB
Code: Select all
ban nick {
mask "?";
reason "Nick too short";
};
For $me it doesn't work.. i have to add mask"a-z" manually :)
Posted: Wed May 03, 2006 8:35 pm
by Jason
I must admit, I also noticed this peculiarity. When I used a ban nick of "?", \ could still use that nick.
A spamfilter of ^[^!][^!]?[^!]?! may be useful in this case. I wish I had thought of spamfilter for this purpose earlier.
Posted: Wed May 03, 2006 11:48 pm
by Stealth
Are you using the fixed 3.2.4? The first release of 3.2.4 had broken matching when it came to ?'s
Posted: Sat May 06, 2006 12:22 am
by Jason
Interesting. How do I check?
Posted: Sat May 06, 2006 5:08 am
by Stealth
I forgot that part... Let me look
Posted: Sat May 06, 2006 5:12 am
by Stealth
Syzop was kind enough to put it here:
http://www.unrealircd.com/324rerelease.txt
1. go to your Unreal3.2 directory
2. type: grep -F "(*m != '?')" src/match.c
3. if it returns 2 lines then you got the fix, if it returns 1 then not.
Posted: Sun May 07, 2006 8:50 pm
by Jason
Fun. I guess I'll be updating then.