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
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
}
}
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.