Need help with that, want to ban user with nick or realname if it included 3 or more numbers..but how to do that?
Now it seems that the spamfilter doesn't work at all...
spamfilter {
regex "^[0-9]{3,}!~[0-9]{3,}@.+:[0-9]{3,}$";
target { user; };
reason "Loser";
action block;
};
thats the one way I have try it...dosn't work, so how to do it??
spamfilter in unreal 3.2.3
Now I have try many other ways also, but can't get it work..
if I use ex. regex "a[0-9]{3,7}a";
it will ban correctly nicks whit starts a and ends a and between those have 3 to 7 numbers.
but how to change it to ban if nick goes like this
1-3letters3-7numbers1-3letters
Don't know how to add those....
if I use ex. regex "a[0-9]{3,7}a";
it will ban correctly nicks whit starts a and ends a and between those have 3 to 7 numbers.
but how to change it to ban if nick goes like this
1-3letters3-7numbers1-3letters
Don't know how to add those....
-
- Head of Support
- Posts: 2086
- Joined: Tue Jun 15, 2004 8:50 pm
- Location: Chino Hills, CA, US
- Contact:
Here are a few tips... You dont need to have all the .* stuff if there isn't anything you are trying to match at the ends. Unreal spamfilters aren't case-sensitive by default, so you don't need to tell it about the other case. Also, instead of [0-9] you can just use \d, which is the same thing. So you just needfinkoisti wrote:regex "[a-zA-Z]+[0-9]{3,7}[a-zA-Z]*!.*@.*:.*";
Code: Select all
^[a-z]+\d{3,7}[a-z]*!
Enjoy!