mIRC Homepage
Posted By: THE_ADZ Anybody have ideas? - 29/12/06 02:25 AM
OK. I entered this code:

/set %list ABC haru zuko13 babeyblue Rock sissha11 Aang_Happy The_one_and_only_Katara Crystal Aang Aang_Website jenn-jenn cat

on 1:JOIN:#avatarrp:{if ($nick isin %list) { /mode #avatarrp +h $nick } }

And it's not working...anyone know why?
Posted By: DaveC Re: Anybody have ideas? - 29/12/06 02:31 AM
on 1:JOIN:#avatarrp:{ if ($istok(%list,$nick,32)) { /mode #avatarrp +h $nick } }

* replaced "{if" with "{ if" to fix why iot wouldnt work
* replaced isin comparasion with one that matches the nicks exactly rather than any nick matching any part of a nick in your list.
Posted By: iMuller Re: Anybody have ideas? - 29/12/06 11:33 PM
Hey THE_ADZ,

The DaveC's code works fine, but I think is much better you use mIRC's Access levels (Read more on mirc's help).

If you decide to use it, there's some code that ought to be helpfull:

Code:
; This one convert nicks of %list into Access
alias abc { %@ = 1 | while ($gettok(%list,%ß,32)) { auser -a 4 $v1 | inc %@ } }

; and this one is how your code going to look
on @5:JOIN:#avatarrp: mode # +h $nick
© mIRC Discussion Forums