Alter the chat module

This patch apply modification in chat module
Merge branch 'master' of https://github.com/ScalaSoft/nano