Make sure messages are within reasonable length, and prevent infinitly long messages from being sent (mostly to prevent channel flooding)