diff options
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 |