mIRC Home    About    Download    Register    News    Help

Print Thread
Anybody have ideas? #167704 29/12/06 02:25 AM
Joined: Dec 2006
Posts: 37
T
THE_ADZ Offline OP
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Dec 2006
Posts: 37
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?

Re: Anybody have ideas? [Re: THE_ADZ] #167706 29/12/06 02:31 AM
Joined: Sep 2003
Posts: 4,230
D
DaveC Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
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.

Re: Anybody have ideas? [Re: THE_ADZ] #167762 29/12/06 11:33 PM
Joined: Dec 2006
Posts: 3
I
iMuller Offline
Self-satisified door
Offline
Self-satisified door
I
Joined: Dec 2006
Posts: 3
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