CHANGED: Added an assertion and made some other improvements.

* Chat.cpp/Chat.h
** Assertion about CheckType.
** Removed unnecessary typeAllowed variable.
** Changed references to simple pass-by-value assignments.