summaryrefslogtreecommitdiff
path: root/src/elogin/parse.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-05-20 01:43:31 +0300
committerAndrei Karas <akaras@inbox.ru>2018-05-20 01:43:55 +0300
commitcbd196f3d0f747827af6c571ffb92a1d1606c0d5 (patch)
tree47ecf7976f492912c328da7b6fa8f8814e574d2a /src/elogin/parse.c
parent4dda0a845c58a428ca4e24f8ac012933bfc12df1 (diff)
downloadevol-hercules-cbd196f3d0f747827af6c571ffb92a1d1606c0d5.tar.gz
evol-hercules-cbd196f3d0f747827af6c571ffb92a1d1606c0d5.tar.bz2
evol-hercules-cbd196f3d0f747827af6c571ffb92a1d1606c0d5.tar.xz
evol-hercules-cbd196f3d0f747827af6c571ffb92a1d1606c0d5.zip
Drop support for client version 16.s20180614
Diffstat (limited to 'src/elogin/parse.c')
-rw-r--r--src/elogin/parse.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/elogin/parse.c b/src/elogin/parse.c
index 6ca6043..7ecdf13 100644
--- a/src/elogin/parse.c
+++ b/src/elogin/parse.c
@@ -34,7 +34,8 @@ void login_parse_version(int fd)
clientVersion = RFIFOL(fd, 2);
- if (clientVersion < 16)
+ // check for minimal supported version
+ if (clientVersion < 17)
{
lclif->login_error(fd, 5);
return;
@@ -58,7 +59,8 @@ 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 < 16)
+ // check for minimal supported version
+ if (clientVersion < 17)
{
lclif->login_error(fd, 5);
hookStop();