Stop user timeout in chat...
This commit is contained in:
parent
6e363f9a9e
commit
ab6e404c38
@ -21,6 +21,7 @@ static int line_at;
|
|||||||
static int row_at;
|
static int row_at;
|
||||||
static char sbuf[512];
|
static char sbuf[512];
|
||||||
extern struct user_record gUser;
|
extern struct user_record gUser;
|
||||||
|
extern usertimeout;
|
||||||
|
|
||||||
struct chat_msg {
|
struct chat_msg {
|
||||||
char nick[16];
|
char nick[16];
|
||||||
@ -217,7 +218,9 @@ void chat_system(struct user_record *user) {
|
|||||||
close(chat_socket);
|
close(chat_socket);
|
||||||
disconnect("Socket closed");
|
disconnect("Socket closed");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
usertimeout = 10;
|
||||||
|
|
||||||
if (c == '\r') {
|
if (c == '\r') {
|
||||||
if (inputbuffer[0] == '/') {
|
if (inputbuffer[0] == '/') {
|
||||||
if (strcasecmp(&inputbuffer[1], "quit") == 0) {
|
if (strcasecmp(&inputbuffer[1], "quit") == 0) {
|
||||||
|
Reference in New Issue
Block a user