Fixed messages not being added to the chat history and ClientCommandHandler not being called when sleeping.
Merge pull request #1586 from Lunatrius/fix-chat-1.8

[1.8] Fixed messages not being added to the chat history