Fire chat event so plugins can filter the chat.

Chat plugins wouldn't be able to filter /g which is really annoying.

Your .gitignore isn't friendly to mac users so I touched it up.