This script can help you if you happen to be in a room that has absolutely no swearing allowed, it will replace swearwords with ****.
usage: /censor activates/deactivates it.
alias censor { if ($group(#censor) == off) { .enable #censor | echo -a Censor activated. }
else { .disable #censor | echo -a Censor deactivated. }
}
#censor off
on *:INPUT:*:{ if ($left($1,1) == /) && (!$ctrlenter) { return }
else /haltdef | //say $regsubex($1-,/fuck(?:in)?|shit|bitch|ass|piss|damnit/gi,****)) }
#censor end