summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-08-19 22:13:13 +0300
committerAndrei Karas <akaras@inbox.ru>2019-08-19 22:13:13 +0300
commitb54941d94ae8fb2a88bf5287d5c65630e2e018cf (patch)
tree4334e8eaaf06d23448569666fd98bf446b03d5f6
parent917fd1fb3a28e70d0713eb63d1f431989b5c16f6 (diff)
downloadplugin-b54941d94ae8fb2a88bf5287d5c65630e2e018cf.tar.gz
plugin-b54941d94ae8fb2a88bf5287d5c65630e2e018cf.tar.bz2
plugin-b54941d94ae8fb2a88bf5287d5c65630e2e018cf.tar.xz
plugin-b54941d94ae8fb2a88bf5287d5c65630e2e018cf.zip
Drop support for protocol version 21
-rw-r--r--src/elogin/parse.c4
-rw-r--r--src/emap/send.c2
2 files changed, 2 insertions, 4 deletions
diff --git a/src/elogin/parse.c b/src/elogin/parse.c
index fffd532..6514165 100644
--- a/src/elogin/parse.c
+++ b/src/elogin/parse.c
@@ -35,7 +35,7 @@ void login_parse_version(int fd)
clientVersion = RFIFOL(fd, 2);
// check for minimal supported version
- if (clientVersion < 21)
+ if (clientVersion < 22)
{
lclif->login_error(fd, 5);
return;
@@ -60,7 +60,7 @@ bool elogin_client_login_pre(int *fdPtr,
safestrncpy(username, RFIFOP(fd, 6), NAME_LENGTH);
int len = (int)safestrnlen(username, NAME_LENGTH);
// check for minimal supported version
- if (clientVersion < 21)
+ if (clientVersion < 22)
{
lclif->login_error(fd, 5);
hookStop();
diff --git a/src/emap/send.c b/src/emap/send.c
index 82ba452..08c57b0 100644
--- a/src/emap/send.c
+++ b/src/emap/send.c
@@ -178,8 +178,6 @@ void send_pc_own_flags(struct block_list* bl)
struct SessionExt *data = session_get_bysd(sd);
if (!data)
return;
- if (data->clientVersion < 22)
- return;
const int fd = sd->fd;
WFIFOHEAD(fd, 8);