Just because someone has 2 numbers at the end of their nick doesn't in any way indicate any kind of trojan. Besides, you're using $nick($1,*)... $1 is !trojanscan in your script. That's not going to work too well.

And even if numbers really did indicate a trojan and even if the $1 was fixed, there are a variety of things in here that could be greatly improved. Things like an IF/ELSE to increment a variable. If the variable is $null, then /inc will set it to 1. So there's no reason to use an IF/ELSE. There's also no reason to use $left($right()). You can use $mid() instead. And then, of course, if you had a lot of people with numbers at the end of their nicks, you'd be sending a lot of /msg's to the channel, which would flood the channel.

In short, this isn't going to do anything useful and currently won't even work because of using $1.


Invision Support
#Invision on irc.irchighway.net