You probably just want $nick as target in that case.