summaryrefslogtreecommitdiff
path: root/src/net/eathena/loginhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-01-23 23:45:41 +0300
committerAndrei Karas <akaras@inbox.ru>2019-01-25 02:39:11 +0300
commit852ca6c80f1c7958b08f0bafcb783a48a51aabb8 (patch)
treeb34df84b2f7bf9815f35972930bd10602baff4c6 /src/net/eathena/loginhandler.cpp
parent19366a7eae5cb6862da3212f8d3e16fe0bf9255e (diff)
downloadmanaverse-852ca6c80f1c7958b08f0bafcb783a48a51aabb8.tar.gz
manaverse-852ca6c80f1c7958b08f0bafcb783a48a51aabb8.tar.bz2
manaverse-852ca6c80f1c7958b08f0bafcb783a48a51aabb8.tar.xz
manaverse-852ca6c80f1c7958b08f0bafcb783a48a51aabb8.zip
Add packet CMSG_LOGIN_OTP_CODE 0x0ad0
Diffstat (limited to 'src/net/eathena/loginhandler.cpp')
-rw-r--r--src/net/eathena/loginhandler.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/net/eathena/loginhandler.cpp b/src/net/eathena/loginhandler.cpp
index 3293317c8..cd22e44eb 100644
--- a/src/net/eathena/loginhandler.cpp
+++ b/src/net/eathena/loginhandler.cpp
@@ -182,4 +182,16 @@ void LoginHandler::sendMobileCode(const BeingId accountId,
outMsg.writeStringNoLog(code, 6, "code");
}
+void LoginHandler::sendOtpCode(const std::string &code) const
+{
+ if (packetVersionMain < 20181114 &&
+ packetVersionRe < 20181114 &&
+ packets_zero == false)
+ {
+ return;
+ }
+ createOutPacket(CMSG_LOGIN_OTP_CODE);
+ outMsg.writeStringNoLog(code, 9, "code");
+}
+
} // namespace EAthena