Stop user timeout in chat...

This commit is contained in:
Andrew Pamment 2017-10-01 17:07:48 +10:00
parent 6e363f9a9e
commit ab6e404c38

View File

@ -21,6 +21,7 @@ static int line_at;
static int row_at;
static char sbuf[512];
extern struct user_record gUser;
extern usertimeout;
struct chat_msg {
char nick[16];
@ -217,7 +218,9 @@ void chat_system(struct user_record *user) {
close(chat_socket);
disconnect("Socket closed");
}
usertimeout = 10;
if (c == '\r') {
if (inputbuffer[0] == '/') {
if (strcasecmp(&inputbuffer[1], "quit") == 0) {