From 704544067426f3bd3f2ad9a583a260c7a5d6e85a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 20 Apr 2017 00:51:50 +0300 Subject: Drop support for client protocol version 7 (Mar 2 2015). --- src/elogin/parse.c | 4 ++-- src/emap/send.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/elogin/parse.c b/src/elogin/parse.c index 282944d..687dc92 100644 --- a/src/elogin/parse.c +++ b/src/elogin/parse.c @@ -34,7 +34,7 @@ void login_parse_version(int fd) clientVersion = RFIFOL(fd, 2); - if (clientVersion < 7) + if (clientVersion < 8) { lclif->login_error(fd, 5); return; @@ -58,7 +58,7 @@ bool elogin_client_login_pre(int *fdPtr, char username[NAME_LENGTH]; safestrncpy(username, RFIFOP(fd, 6), NAME_LENGTH); int len = (int)safestrnlen(username, NAME_LENGTH); - if (clientVersion < 7) + if (clientVersion < 8) { lclif->login_error(fd, 5); hookStop(); diff --git a/src/emap/send.c b/src/emap/send.c index ea02817..ae4e000 100644 --- a/src/emap/send.c +++ b/src/emap/send.c @@ -361,7 +361,7 @@ void send_client_command(struct map_session_data *sd, const char *const command) if (!command) return; struct SessionExt *data = session_get_bysd(sd); - if (!data || data->clientVersion < 8) + if (!data) return; const unsigned int len = (unsigned int)strlen(command); -- cgit v1.2.3-70-g09d2