mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2011
Posts: 11
K
KBN Offline OP
Pikka bird
OP Offline
Pikka bird
K
Joined: Apr 2011
Posts: 11
How would i ban someone from a script?

Joined: Nov 2009
Posts: 295
P
Fjord artisan
Offline
Fjord artisan
P
Joined: Nov 2009
Posts: 295
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


http://scripting.pball.win
My personal site with some scripts I've released.
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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)


Invision Support
#Invision on irc.irchighway.net
Joined: Nov 2009
Posts: 295
P
Fjord artisan
Offline
Fjord artisan
P
Joined: Nov 2009
Posts: 295
whoops, thanks Riamus2


http://scripting.pball.win
My personal site with some scripts I've released.

Link Copied to Clipboard