this is probably an easy question, tho i've searched this section
of the forum and havent spotte the answer
anyways
some botnet owners arent very bright and use the same real name on each of their bots
so spamfilter is able to get the using the the realname
lets say the realname = evil botnet
what would the correct regex be then to fill up that space ?
so far i've tried evil_botnet and evil^botnet
but that dont seem to work, only way i managed to get them of was using evil* but i dont like
to keep that broad spamfilter on
ex: /spamfilter add u gline 1d suspected_botnet *!*@*:uk^known
/spamfilter add u gline 1d suspected_botnet *!*@*:uk_known
^
|
|
dont work
real names with space
Regexes have a different syntax than those wildcard masks you can use in UnrealIRCd. You should learn about regexes first. See GouroB's topic for more information.
If you know that, then why do you continue to use bad regexps?heh i know that
Every single one of those is wrong. *, as Angrywolf mentioned, is NOT the same as in a wildcard. It does not mean "match any character." It means "match 0 or more of the previous character." So, what happens when you put an * as the first character? Well, either you get an error, or it does nothing. As Angrywolf said, learn regexp first. But to your question, I don't know why you are trying all this crazy \s, [:blank:], _, etc. Have you considered maybe just putting a space character?like /spamfilter add u gline 1d suspected_botnet *!*@*:uk\sknown
and /spamfilter add u gline 1d suspected_botnet *!*@*:uk.\s.known
and /spamfilter addl u gline 1d suspected_botnet *!*@*:uk[[:blank:]]known
-
- Head of Support
- Posts: 2085
- Joined: Tue Jun 15, 2004 8:50 pm
- Location: Chino Hills, CA, US
- Contact:
Code: Select all
/spamfilter add u gline 1d suspected_botnet .+!.+@.+:uk sknown
EDIT: Improved my regex