From a239e426893cb1526769bb65719f9bb673ea14a4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 15 Apr 2015 13:12:49 +0300 Subject: eathena: use haveChangePassword feature in change password packet. --- src/net/eathena/loginhandler.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/net') 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"); -- cgit v1.2.3-70-g09d2