If the network you're on is using Unreal, and you have access to change channel modes, set channel mode +G

This may work with other IRCd's as well, but definetely works with Unreal. The +G mode makes the channel G rated, so the network looks after the "bad words".