added caps and swear blocking

Added in a method of dealing with caps rage messages and swearing. Also
shuffled around log_chatcommands so that the new functions could be run
from there now.