diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-01-23 23:36:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-01-25 02:38:22 +0300 |
commit | 19366a7eae5cb6862da3212f8d3e16fe0bf9255e (patch) | |
tree | 6566eaac715be1d330ba67e46c2e0014dc334e07 /src/net/eathena/loginhandler.cpp | |
parent | 2f4a9f411ba4be70663b000228a4ee6227e080ac (diff) | |
download | plus-19366a7eae5cb6862da3212f8d3e16fe0bf9255e.tar.gz plus-19366a7eae5cb6862da3212f8d3e16fe0bf9255e.tar.bz2 plus-19366a7eae5cb6862da3212f8d3e16fe0bf9255e.tar.xz plus-19366a7eae5cb6862da3212f8d3e16fe0bf9255e.zip |
Add packet CMSG_LOGIN_MOBILE_OTP 0x09a3
Diffstat (limited to 'src/net/eathena/loginhandler.cpp')
-rw-r--r-- | src/net/eathena/loginhandler.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/net/eathena/loginhandler.cpp b/src/net/eathena/loginhandler.cpp index cabc9fad7..3293317c8 100644 --- a/src/net/eathena/loginhandler.cpp +++ b/src/net/eathena/loginhandler.cpp @@ -35,6 +35,10 @@ #include "debug.h" +extern int packetVersionMain; +extern int packetVersionRe; +extern int packets_zero; + namespace EAthena { @@ -164,4 +168,18 @@ void LoginHandler::updatePacketVersion() const updateProtocol(); } +void LoginHandler::sendMobileCode(const BeingId accountId, + const std::string &code) const +{ + if (packetVersionMain < 20181114 && + packetVersionRe < 20181114) + { + return; + } + createOutPacket(CMSG_LOGIN_MOBILE_OTP); + outMsg.writeInt16(14, "len"); + outMsg.writeBeingId(accountId, "account id"); + outMsg.writeStringNoLog(code, 6, "code"); +} + } // namespace EAthena |