Quote:
My bad, I was testing it in an alias when I posted it. This should work by changing $1 to $2.

Code:
 on *:text:@wmfind &:%sLchannel: {
  var %a = 1, %b
  while $var(%*,%a) {
    if ( $2 isin $var(%*,%a).value ) {
      %b = $addtok(%b, $var(%*,%a), 32)
    }
    inc %a
  }
  notice $nick ** Results for $2 $+ : $iif(%b, $v1, None)
}  


Stil on bad:
(10:40:22) -^hOPPA- ** Results for orneta: %sl2 %sl16

smile think I have to use $gettok(%b,1,32) instead?!