This is creative. Great scripting too, for someone in the learning stages. :D
For your problem, use this:
if ($istok($1-,%jinxed,32)) {
It'll find the nick anywhere in the line, as long as words are separated by spaces.