Code: Select all
if ($regex($1, /^<- :([^!]*)![^@]*@[^ ]*\s*PRIVMSG\s*(\S*)\s*:\001\s*DCC\s*(SEND|RESUME).*"(?:[^" ]*\s){32}.*$/i)) {
var %nick = $regml(1), %target = $regml(2), %type = $regml(3)
}
how do i get %nick, %target, and %type out of the regex?
... this is being borrowed from a "workaround" script for the mIRC 6.x DCC exploit... i want to write a script for my bot that kickbans anyone who sends the exploit. will post when i have it completed and working
[edit] actually, i'm not even sure if that actually parses for the exploit only or if it just parses all DCC's... but even if it parses all DCC's that's fine with me, i just need the DCC msg in a me-readable format [/edit]
thanks!