well you got something else going on then becuase it works here. check this line out

//echo Nick name search resulted with " $+ $nick(#,$fline(#,* $+ $left($?1,-1) $+ *,1,1)) $+ "

run that command in a channel and see what it comes back with for a part nick that is there and for one thats not. ie:
nick:
ick:
ic:
yayayayayayayayayayaimnothere: