Code:
on 1:text:$($+(*,$me,*)):#:.if ($input(Someone looks for you in $chan $+ . Go to that window ?,y)) window -a $chan

I think that's what you want to do, but it's not possible. You can't use $input in events frown