You can search for a script that detects bad words via on text, action, and notice. (there are quite a handful made available out there) Then modify it to automatically ban without kick as Russel showed up there, but once you find one, I'd suggest that you use $wildsite instead of $nick because $nick can be changed easily to bypass a ban.