mIRC Homepage
Posted By: Andixx Clone Help - 07/12/05 01:04 PM
i Hav install this addons in my remotes but dont work

on 1:SNOTICE:*Client connecting*:{
if ($regex($5,(.~[a-z]{1}[0-9]{3,4}@*))) { kill $4 proxy clone }
}
Posted By: genius_at_work Re: Clone Help - 07/12/05 07:00 PM
You need the /'s in the regex.
Code:
on *:SNOTICE:*Client connecting*:{
  if ($regex($5,/~?[a-z]\d{3,4}@.*/i)) kill $4 proxy clone
} 


Also, I'm not sure if you are using the correct numbers for $4 and $5. The syntax im used to seeing is this:

NOTICE -- Client Connecting: nickname ident@host.com

In the above case, the correct numbers would be $regex($6,...) and kill $5... . Your server notices may be different though. You could try adding this line to see if you have the right ones:

Code:
on *:SNOTICE:*Client connecting*:{
  [color:red]echo -s Nick: $4 Host: $5[/color]
  if ($regex($5,/~?[a-z]\d{3,4}@.*/i)) kill $4 proxy clone
} 


Also, if you already have another SNOTICE line, you will have to add this new one into a different remotes file.

-genius_at_work
© mIRC Discussion Forums