You might also want to strip colors etc out the text and see your name in the middle of other text such as "hey look $me's here!" or "$me!!!!!!!!!!!!!!!!!! how are ya?"

on *:TEXT:*:#: { if ($me isin $strip($1-)) { beep 1 0 } }