mIRC Homepage
Posted By: KBN Banning person from a script - 02/08/11 06:51 AM
How would i ban someone from a script?
Posted By: pball Re: Banning person from a script - 02/08/11 11:20 AM
at the beginning of a script add.
Code:
;for banning nicks
if ($istok($nick,bannnednick1 nick2 durr,32)) halt

;for banning addresses
if ($istok($address($nick,2),*!*@this.is.a.vhost *!*@weeee.weeee.weeee,32)) halt


Just replace the example nicks/addresses with who you want to ban
Posted By: Riamus2 Re: Banning person from a script - 02/08/11 12:25 PM
You have your $istok backwards.

$istok(list of tokens,token to search for from list,separator)

It's easy to get it backwards based on the help file description because token is the second item, not the first in the help file. However, when it's referring to the token, it's referring to what you're searching for in the original string (aka list of tokens).

Code:
$istok(nick1 nick2 nick3,$nick,32)
Posted By: pball Re: Banning person from a script - 03/08/11 02:19 AM
whoops, thanks Riamus2
© mIRC Discussion Forums