diff options
Diffstat (limited to 'src/echar/char.c')
-rw-r--r-- | src/echar/char.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/echar/char.c b/src/echar/char.c index 6f2c92f..5fa2122 100644 --- a/src/echar/char.c +++ b/src/echar/char.c @@ -146,32 +146,6 @@ void echar_creation_failed(int *fdPtr, int *result) hookStop(); } -void echar_parse_char_ping(int *fdPtr) -{ - const int fd = *fdPtr; - RFIFOSKIP(fd, 6); - - struct char_session_data* sd = (struct char_session_data*)sockt->session[fd]->session_data; - if (!sd) - { - hookStop(); - return; - } - struct online_char_data* character = (struct online_char_data*)idb_get(chr->online_char_db, sd->account_id); - if (!character) - { - hookStop(); - return; - } - - if (character->waiting_disconnect != INVALID_TIMER) - { - timer->delete(character->waiting_disconnect, chr->waiting_disconnect); - character->waiting_disconnect = timer->add(timer->gettick() + 30000, chr->waiting_disconnect, character->account_id, 0); - } - hookStop(); -} - void echar_parse_change_paassword(int fd) { if (chr->login_fd < 0) |