diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-04-15 13:09:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-04-15 13:09:57 +0300 |
commit | 7d43f25c4e18e977df7a16b63f529fbe6371b9bc (patch) | |
tree | 26fbaf7cbe3a2d498f3fa4777a255fba15ff5fba /src/net/eathena | |
parent | 68dfa81376382b4bdc8407e5334ab1787dc39c3f (diff) | |
download | plus-7d43f25c4e18e977df7a16b63f529fbe6371b9bc.tar.gz plus-7d43f25c4e18e977df7a16b63f529fbe6371b9bc.tar.bz2 plus-7d43f25c4e18e977df7a16b63f529fbe6371b9bc.tar.xz plus-7d43f25c4e18e977df7a16b63f529fbe6371b9bc.zip |
Add server feature haveChangePassword.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/serverfeatures.cpp | 5 | ||||
-rw-r--r-- | src/net/eathena/serverfeatures.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/net/eathena/serverfeatures.cpp b/src/net/eathena/serverfeatures.cpp index caac3607a..089f58da1 100644 --- a/src/net/eathena/serverfeatures.cpp +++ b/src/net/eathena/serverfeatures.cpp @@ -230,4 +230,9 @@ bool ServerFeatures::haveMute() const return true; } +bool ServerFeatures::haveChangePassword() const +{ + return serverVersion >= 6; +} + } // namespace EAthena diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h index 5b7ea0b6b..ac5381299 100644 --- a/src/net/eathena/serverfeatures.h +++ b/src/net/eathena/serverfeatures.h @@ -111,6 +111,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveExpPacket() const override final; bool haveMute() const override final; + + bool haveChangePassword() const override final; }; } // namespace EAthena |