diff options
author | (no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-11-05 00:00:50 +0000 |
---|---|---|
committer | (no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-11-05 00:00:50 +0000 |
commit | 33c37b2ba315af44f1ed17adafc06044059af32f (patch) | |
tree | d3e245143e1877e90a25763291e5ac08b5f7f5cd /src/map/clif.c | |
parent | 8d77d2d60af57862d731814b23a81ec868668043 (diff) | |
download | hercules-33c37b2ba315af44f1ed17adafc06044059af32f.tar.gz hercules-33c37b2ba315af44f1ed17adafc06044059af32f.tar.bz2 hercules-33c37b2ba315af44f1ed17adafc06044059af32f.tar.xz hercules-33c37b2ba315af44f1ed17adafc06044059af32f.zip |
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@9 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 6 |
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
|