diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-04-15 13:12:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-04-15 13:12:49 +0300 |
commit | a239e426893cb1526769bb65719f9bb673ea14a4 (patch) | |
tree | 26ff343d5e8ac1e702fcb29446c6fbf40acc25fa /src/net/eathena | |
parent | 7d43f25c4e18e977df7a16b63f529fbe6371b9bc (diff) | |
download | mv-a239e426893cb1526769bb65719f9bb673ea14a4.tar.gz mv-a239e426893cb1526769bb65719f9bb673ea14a4.tar.bz2 mv-a239e426893cb1526769bb65719f9bb673ea14a4.tar.xz mv-a239e426893cb1526769bb65719f9bb673ea14a4.zip |
eathena: use haveChangePassword feature in change password packet.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/loginhandler.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net/eathena/loginhandler.cpp b/src/net/eathena/loginhandler.cpp index 81ee45a60..6d8e892e9 100644 --- a/src/net/eathena/loginhandler.cpp +++ b/src/net/eathena/loginhandler.cpp @@ -138,6 +138,8 @@ void LoginHandler::disconnect() void LoginHandler::changePassword(const std::string &restrict oldPassword, const std::string &restrict newPassword) const { + if (!serverFeatures->haveChangePassword()) + return; createOutPacket(CMSG_CHAR_PASSWORD_CHANGE); outMsg.writeStringNoLog(oldPassword, 24, "old password"); outMsg.writeStringNoLog(newPassword, 24, "new password"); |