Just change $1- to $2- here:

Code:
if ($nick($chan,%nick1) isin $strip($2-)) {