summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-04-15 13:12:49 +0300
committerAndrei Karas <akaras@inbox.ru>2015-04-15 13:12:49 +0300
commita239e426893cb1526769bb65719f9bb673ea14a4 (patch)
tree26ff343d5e8ac1e702fcb29446c6fbf40acc25fa /src/net/eathena
parent7d43f25c4e18e977df7a16b63f529fbe6371b9bc (diff)
downloadplus-a239e426893cb1526769bb65719f9bb673ea14a4.tar.gz
plus-a239e426893cb1526769bb65719f9bb673ea14a4.tar.bz2
plus-a239e426893cb1526769bb65719f9bb673ea14a4.tar.xz
plus-a239e426893cb1526769bb65719f9bb673ea14a4.zip
eathena: use haveChangePassword feature in change password packet.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/loginhandler.cpp2
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");