diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-04-16 23:23:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-05-05 22:22:05 +0300 |
commit | 200bb9f2408d0abb805c8352750a9d4949fbed78 (patch) | |
tree | 4988c0775a669febaa446348aed16b0321a6667b /src/map/clif.c | |
parent | a3cda4e072586458e1ace4d215f3fd2406518d96 (diff) | |
download | hercules-200bb9f2408d0abb805c8352750a9d4949fbed78.tar.gz hercules-200bb9f2408d0abb805c8352750a9d4949fbed78.tar.bz2 hercules-200bb9f2408d0abb805c8352750a9d4949fbed78.tar.xz hercules-200bb9f2408d0abb805c8352750a9d4949fbed78.zip |
Add option for drop connection on disconnect packet from client
New configuration option drop_connection_on_quit.
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 43407af10..91965cce1 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -10978,7 +10978,8 @@ static void clif_parse_QuitGame(int fd, struct map_session_data *sd) (!battle_config.prevent_logout || DIFF_TICK(timer->gettick(), sd->canlog_tick) > battle_config.prevent_logout)) { clif->disconnect_ack(sd, 0); sockt->flush(fd); - sockt->eof(fd); + if (battle_config.drop_connection_on_quit) + sockt->eof(fd); } else { clif->disconnect_ack(sd, 1); } |