assuming that code works as you want, the word is $gettok($read(swear.txt,1),%i,32)

* Add a /RETURN after the /msg and the /ban as you want the event to exit after either of these commands.

I do not beleive you well get the desired effect by using wildcard words, since F*CK well match "the first lock is in the second door" ie First loCK. irst lo is the *