That goes to iswm too. I was just basing it off of what the author has. Perhaps use $istok($1-,$me,32)
on *:text:*:#:{
if ((!%f && $istok($strip($1-),$me,32) && $chan != $active || $cid != $activecid)) {
inc -u5 %f | noop $tip('Tray Tip', $nick has alerted you: $+ ,$1-,10)
}
}
I've included the $chan != $active because I don't see the point in being active while having someone call out to you. I also think it's better to take advantage of the $tip identifier for this.
-Edited as per Gummo's recommendation.