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

Fixed messages not being added to the chat history