mIRC Home    About    Download    Register    News    Help

Print Thread
#176890 16/05/07 01:19 AM
Joined: May 2007
Posts: 4
L
Self-satisified door
OP Offline
Self-satisified door
L
Joined: May 2007
Posts: 4
alias check {
set %test 1
:test
set %test2 $nick(#,%test)
if %test2 isop $chan { .echo -a caca $+ %test2 }
if %test2 isvoice $chan { .echo -a putos }
inc %test
if %test > $nick(#,0) { halt }
goto test
}

works the isop option but the isvoice nop
any one help me

thnx

LordSith #176892 16/05/07 01:47 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
I tried your code, since I wasn't able to see anything wrong with the code, and it worked fine for me. Here's an alternative version.
Code:
alias check {
  var %test = 1
  while %test <= $nick(#,0) {
    if $nick(#,%test,o) { .echo -a caca $+ $v1 }
    if $nick(#,%test,v) { .echo -a putos }
    inc %test
  }
}

RusselB #176898 16/05/07 02:48 AM
Joined: May 2007
Posts: 4
L
Self-satisified door
OP Offline
Self-satisified door
L
Joined: May 2007
Posts: 4
thnx so much

LordSith #176900 16/05/07 02:56 AM
Joined: Jan 2004
Posts: 2,127
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
thought i'd point out that you would need to decide whether you wanted both messages to show if the nick had been given both op AND voice, which can happen. ie, have the 2nd message be an ELSE statement.


Link Copied to Clipboard