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 char sbuf[512];
|
||||
extern struct user_record gUser;
|
||||
extern usertimeout;
|
||||
|
||||
struct chat_msg {
|
||||
char nick[16];
|
||||
@ -218,6 +219,8 @@ void chat_system(struct user_record *user) {
|
||||
disconnect("Socket closed");
|
||||
}
|
||||
|
||||
usertimeout = 10;
|
||||
|
||||
if (c == '\r') {
|
||||
if (inputbuffer[0] == '/') {
|
||||
if (strcasecmp(&inputbuffer[1], "quit") == 0) {
|
||||
|
Reference in New Issue
Block a user