Maybe I should just do

if ($nick == my name) ?