You didn't include how the alias was being called, but i assume from the context that you're calling it from $submenu
/help $submenu shows that the first integer called by $submenu is 1 not 0, so if you're needing to have results for 0-9, you need to get that from 1-10, like doing something like:
alias mask.sub {
if ($1 isnum 1-10) {
tokenize 32 $calc($1 -1) $2-
return $iif($1 == % [ $+ [ $2 ] $+ ] .mask,$style(1)) $+(&,$1,. $mask($iif($3,$3,nick!ident@some.host.com),$1),:chg,$2,mask) $1 }
}
Last edited by maroon; 12/06/20 04:27 AM.