summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-12-17 00:45:28 +0300
committerAndrei Karas <akaras@inbox.ru>2016-12-17 00:45:28 +0300
commite4bb6a1c4841c263878291915c528de77042bba5 (patch)
treef9823a36b44963ecd9e32c04d1925ece6551cfee /src/net/eathena
parent68ba74a39cbddd5bc92edf5025864c5014e698d8 (diff)
downloadmanaverse-e4bb6a1c4841c263878291915c528de77042bba5.tar.gz
manaverse-e4bb6a1c4841c263878291915c528de77042bba5.tar.bz2
manaverse-e4bb6a1c4841c263878291915c528de77042bba5.tar.xz
manaverse-e4bb6a1c4841c263878291915c528de77042bba5.zip
Drop support for evol plugin version 5.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/loginhandler.cpp2
-rw-r--r--src/net/eathena/serverfeatures.cpp5
-rw-r--r--src/net/eathena/serverfeatures.h2
3 files changed, 1 insertions, 8 deletions
diff --git a/src/net/eathena/loginhandler.cpp b/src/net/eathena/loginhandler.cpp
index 9541bc291..7cbcf49cc 100644
--- a/src/net/eathena/loginhandler.cpp
+++ b/src/net/eathena/loginhandler.cpp
@@ -87,7 +87,7 @@ void LoginHandler::changePassword(const std::string &restrict oldPassword,
const std::string &restrict newPassword)
const
{
- if (!serverFeatures->haveChangePassword())
+ if (serverVersion == 0)
return;
createOutPacket(CMSG_CHAR_PASSWORD_CHANGE);
outMsg.writeStringNoLog(oldPassword, 24, "old password");
diff --git a/src/net/eathena/serverfeatures.cpp b/src/net/eathena/serverfeatures.cpp
index 4c24e088e..32e0d18e2 100644
--- a/src/net/eathena/serverfeatures.cpp
+++ b/src/net/eathena/serverfeatures.cpp
@@ -230,11 +230,6 @@ bool ServerFeatures::haveMute() const
return true;
}
-bool ServerFeatures::haveChangePassword() const
-{
- return serverVersion >= 6;
-}
-
bool ServerFeatures::haveTeamId() const
{
return false;
diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h
index 4d07c12b4..7e4d5b392 100644
--- a/src/net/eathena/serverfeatures.h
+++ b/src/net/eathena/serverfeatures.h
@@ -112,8 +112,6 @@ class ServerFeatures final : public Net::ServerFeatures
bool haveMute() const override final A_CONST;
- bool haveChangePassword() const override final;
-
bool haveTeamId() const override final A_CONST;
bool haveAdvancedSprites() const override final;