Lol why not regex?
alias nicksearch { var %r $regsubex($str(.,$nick($1,0)),/./g,$iif( [ $2 ] iswm $nick( [ $1 ] ,\n),$v2 $+ $chr( [ $3 ] ))) return $deltok($iif($4,$sorttok(%r,$3),%r),,$3) }
Edit: Don't need a capture group. Also, now removes null tokens.
lol, why not fline?
alias nicksearch { var %r $regsubex($str($chr($3),$nick($1,0)),/(?=.)/g,$fline( [ $1, $2 ] ,\n,1).text) return $iif($4,$sorttok(%r,$3),$deltok(%r,,$3)) }
lol, why not fline?