Code:
"$nick" has to be "$1" 


did you tried it and didn't worked?


learn learn learn