summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-04-20 01:38:25 +0300
committerAndrei Karas <akaras@inbox.ru>2017-04-20 01:38:25 +0300
commitbbec048534c01eb039386745b13909026d58dbb3 (patch)
treec7470bbb8a76efe67f5ba651c1d446a6936e2508
parentca8f4954af2c0b800358229c831ebcbbb2567acb (diff)
downloadplugin-bbec048534c01eb039386745b13909026d58dbb3.tar.gz
plugin-bbec048534c01eb039386745b13909026d58dbb3.tar.bz2
plugin-bbec048534c01eb039386745b13909026d58dbb3.tar.xz
plugin-bbec048534c01eb039386745b13909026d58dbb3.zip
Drop support for client protocol version 14 (Oct 15 2015).
-rw-r--r--src/elogin/parse.c4
-rw-r--r--src/emap/send.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/elogin/parse.c b/src/elogin/parse.c
index 1589c67..9429673 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 < 14)
+ if (clientVersion < 15)
{
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 < 14)
+ if (clientVersion < 15)
{
lclif->login_error(fd, 5);
hookStop();
diff --git a/src/emap/send.c b/src/emap/send.c
index 196eec1..35a9477 100644
--- a/src/emap/send.c
+++ b/src/emap/send.c
@@ -452,7 +452,7 @@ void send_pc_skin(int fd, int npcId, const char *const skin)
if (!skin)
return;
struct SessionExt *data = session_get(fd);
- if (!data || data->clientVersion < 15)
+ if (!data)
return;
const int sz = (int)strlen(skin) + 9;