Help with DCC block regex
-
- Posts: 267
- Joined: Tue Jan 18, 2005 3:24 pm
- Location: Scotland - United Kingdom
Help with DCC block regex
um i must be sleeping or sumthing but i cant get this to work so some help would be ncie and maybe why it wont work
Situation: people pasting -nickname- DCC SEND blah (iphere)
we dont want the ip to be shown. so, i thought
((?i)DCC).*([0-9]{3} )\.\3\.\3\.\3
would be the regex, however its not working...
ive also tryed...
((?i)DCC).*[0-9]{3} \.[0-9]{3} \. [0-9]{3} \. [0-9]{3}
and still nothing, :S
Situation: people pasting -nickname- DCC SEND blah (iphere)
we dont want the ip to be shown. so, i thought
((?i)DCC).*([0-9]{3} )\.\3\.\3\.\3
would be the regex, however its not working...
ive also tryed...
((?i)DCC).*[0-9]{3} \.[0-9]{3} \. [0-9]{3} \. [0-9]{3}
and still nothing, :S
i spend 4 hrs a day gaming and 14hrs on irc, for 5days a week, im not an addict
The regexps for the IP are wrong (both times)...
Try something like
Try something like
Code: Select all
DCC SEND .+ ([0-9]{1,3}\.){3}[0-9]{1,3}
If you don't make mistakes, you aren't really trying.
- Coleman Hawkins
- Coleman Hawkins
Wouldn't just:
DCC SEND .+ ([0-9]{1,3}\.){3}
work fine?
(to me, that's matching 3 groups only - but it should still work fine, right? how many false positives can you expect in that kind of a case? :p)
DCC SEND .+ ([0-9]{1,3}\.){3}
work fine?
(to me, that's matching 3 groups only - but it should still work fine, right? how many false positives can you expect in that kind of a case? :p)
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
Er... do you not realize that the IP is also included in the actual DCC request (the one that makes the "Chat/Send request" dialog pop up)? There's no point in blocking this. In fact, DCC can't work without sending the IP.
Yes, it's probably silly - afaik mIRC is the only client that sends this extra notice with DCCs, but nonetheless, once a DCC session is established, both sides can get the other's IP easily (netstat, client logging, etc).
Yes, it's probably silly - afaik mIRC is the only client that sends this extra notice with DCCs, but nonetheless, once a DCC session is established, both sides can get the other's IP easily (netstat, client logging, etc).
-
- Posts: 36
- Joined: Fri Apr 08, 2005 12:10 pm
I believe what he's trying to block is people (for some reason) pasting this line in a channel or something? in which case he could use the 'p' target no?
@TigerKatziTatzi: That's pretty much irrelevant for this discussion but anyhow ;P
@TigerKatziTatzi: That's pretty much irrelevant for this discussion but anyhow ;P
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
>.^
I didn't know there was a difference between private/channel messages. Guess you learn something every day.
I didn't know there was a difference between private/channel messages. Guess you learn something every day.
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
-
- Posts: 267
- Joined: Tue Jan 18, 2005 3:24 pm
- Location: Scotland - United Kingdom
He's not talking about the DCC request, just the extra notice that mIRC seems to insist on sending...
Code: Select all
/spamfilter add pcnN block - Dont_paste_those_mkay. DCC (Chat|Send .*) ((\d{1,3}\.){3}\d{1,3})