mIRC Home    About    Download    Register    News    Help

Print Thread
#137062 07/12/05 01:04 PM
Joined: Dec 2005
Posts: 3
A
Andixx Offline OP
Self-satisified door
OP Offline
Self-satisified door
A
Joined: Dec 2005
Posts: 3
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 }
}

#137063 07/12/05 07:00 PM
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
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

Last edited by genius_at_work; 07/12/05 07:00 PM.

Link Copied to Clipboard