Well this is a very simple snippet that you use if you want someone who says a bad word to be kicked when they say that word all you do is fill in the area with a bad word and when someone says it they get kicked for 30 seconds! You can have more than one after eachother.
on @*:TEXT:*<bad word here>*:#: { msg $chan No naughty words, $nick $+ ! 30 Second ban.
ban -ku30 $chan $nick }