Hi Noplex,

you probably replied to the wrong person, as Iori didn't post a script.

To answer your question: all the solutions pasted in this thread are more or less the same aside from little differences in scripting approach.
The script I pasted last, is pretty much the same as you pasted.

Btw I noticed you altered the script, though you should remove the "2" from the kick command.
The 2 was used along with the /ban command to set the type of ban, though it does not have a meaning with the /kick command.

Greets

Edit: to Zyxxy and Kriminal: while (%x <= $nick($1,0,r)) <-- it is usually bad practice to put an identifier in an if condition, when it is certain that the identifier needs quite some internal processing to return the value. I'm thinking of $len, $lines, and anything that requires some calculation. This is because with every iteration, the identifier has to be called again to return the wanted value. It is far more efficient to store the wanted value in a variable, and then inc/dec the iteration variable (as seen in my example script). Note that in other cases the loss in speed won't be much, and then it won't matter. Btw this isn't criticism in any way, just trying to give some tips of value.

Last edited by FiberOPtics; 31/05/04 02:25 AM.