NICNAME
-
- Posts: 53
- Joined: Thu Apr 06, 2006 3:35 pm
- Location: Turkey
- Contact:
NICNAME
I want, disable for short nick, exp : bo
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:
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.";
};
-
- Posts: 53
- Joined: Thu Apr 06, 2006 3:35 pm
- Location: Turkey
- Contact:
thnx
thnx
-
- Head of Support
- Posts: 2085
- Joined: Tue Jun 15, 2004 8:50 pm
- Location: Chino Hills, CA, US
- Contact:
Spamfilter was not designed for this, Unreal already has a feature that can be used. Use the ban nick block:
Those will block nicks that have 1 2 or 3 characters, but will allow longer nicks. To add more, just increase the question marks.
Code: Select all
ban nick {
mask "?";
reason "Nick too short";
};
ban nick {
mask "??";
reason "Nick too short";
};
ban nick {
mask "???";
reason "Nick too short";
};
Code: Select all
ban nick {
mask "?";
reason "Nick too short";
};
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.
A spamfilter of ^[^!][^!]?[^!]?! may be useful in this case. I wish I had thought of spamfilter for this purpose earlier.
Why the hell can't my signature be empty?
"Your message contains too few characters."
"Your message contains too few characters."
-
- Head of Support
- Posts: 2085
- Joined: Tue Jun 15, 2004 8:50 pm
- Location: Chino Hills, CA, US
- Contact:
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.