Update chat.c