on @*:text:*names*:#channels:{
if ($nick !isop #) ban -k # $nick 2 Don't Say God Names!

Btw, like you can see I've changed # to #channels (you should put your own channel in there), because this woudl trigger on any channel you are in. If you want it to trigger on multiple channels you can put them there, sperated by commas like: #chan1,#chan2,#chan3 etc.

Also added @ so that it only triggers if you have operator status in the channel.

I seriously advise you to make the matching criteria (*names*) stricter, as that would be plain cruel to ban someone for saying the word "names" but I suppose you will put your own "swear" words there later.