summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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");