Maybe I should just do

if ($nick == my name) ?


I'm a noob, please do not judge and any help is greatly appreciated.