update chatserver.cpp