ChatScript spam filter

Added a check when chatting to ensure that messages aren't being deliberately spammed to crash the server.

I accidentally screwed up when making the pull requests (I'm like an absolute idiot when it comes to git) so my previous pull request is also included in this.