mIRC Home    About    Download    Register    News    Help

Print Thread
#130570 19/09/05 03:16 PM
Joined: Jan 2003
Posts: 66
M
maezr Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: Jan 2003
Posts: 66
on 1:JOIN:#ffshrine: {
if ($istok($nick, %avoice, 46)) {
mode $chan +v $nick
}
}

%avoice is currently

%avoice Garion.Turlough.Eagle_Vision.Alpott.Garion.whitemage2005.SyphBot.kasa.HerpBot.ashin

however, it doesn't seem to be working. no users in that token are being autovoiced. why?

#130571 19/09/05 03:21 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
$istok(%avoice,$nick,46)

Wrong way round dude. smile

-Andy

#130572 19/09/05 03:22 PM
Joined: Jan 2003
Posts: 249
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Jan 2003
Posts: 249
Code:
ON *:JOIN:#ffshrine: {
 if ( $me isop $chan && $istok( %avoice, $nick, 46 ) ) {
  mode $chan +v $nick
 }
}

#130573 19/09/05 03:30 PM
Joined: Jan 2003
Posts: 66
M
maezr Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: Jan 2003
Posts: 66
thanks. I'm having another small problem:

$addtok according to the documentation won't add the same token twice, even if you try. however, it doesn't seem to be acting that way.

.Add:/set %avoice $addtok($1, %avoice, 46)

if I try to add the same nick twice, it shows up twice in the token string. why?

#130574 19/09/05 03:38 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
You have the parameters mixed up again.

Code:
set %avoice $addtok(%avoice,$1,32)


Link Copied to Clipboard