summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 99ccbb8c0..ecd165ac4 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -9476,9 +9476,13 @@ static int clif_parse(int fd) {
sd = session[fd]->session_data;
// 接続が切れてるので後始末
- if (!chrif_isconnect() || session[fd]->eof) { // char鯖に繋がってない間は接続禁止 (!chrif_isconnect())
+ if (!chrif_isconnect())
+ session[fd]->eof = 1;
+ if(session[fd]->eof) { // char鯖に繋がってない間は接続禁止 (!chrif_isconnect())
if (sd && sd->state.auth) {
clif_quitsave(fd, sd);
+ if(sd->status.name!=NULL && battle_config.etc_log)
+ printf("Player [%s] Has Logged Off Your Server.\n",sd->status.name); // Player logout display [Valaris]
} else if (sd) { // not authentified! (refused by char-server or disconnect before to be authentified)
// printf("Player with account [%d] has logged off your server (not auth account).\n", sd->bl.id); // Player logout display [Yor]
map_deliddb(&sd->bl); // account_id has been included in the DB before auth answer