File tree Expand file tree Collapse file tree
src/server/network/protocol Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -847,7 +847,7 @@ void ProtocolGame::onRecvFirstMessage(NetworkMessage &msg) {
847847 ss << " Your " << (oldProtocol ? " username" : " email" ) << " or password is not correct." ;
848848 }
849849
850- auto output = OutputMessagePool::getOutputMessage ();
850+ auto output = OutputMessagePool::getOutputMessage (oldProtocol );
851851 output->addByte (0x14 );
852852 output->addString (ss.str ());
853853 send (output);
@@ -889,7 +889,7 @@ void ProtocolGame::sendLoginChallenge() {
889889}
890890
891891void ProtocolGame::disconnectClient (const std::string &message) const {
892- auto output = OutputMessagePool::getOutputMessage ();
892+ auto output = OutputMessagePool::getOutputMessage (oldProtocol );
893893 output->addByte (0x14 );
894894 output->addString (message);
895895 send (output);
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ ProtocolLogin::ProtocolLogin(const Connection_ptr &loginConnection) :
2525}
2626
2727void ProtocolLogin::disconnectClient (const std::string &message) const {
28- const auto output = OutputMessagePool::getOutputMessage ();
28+ const auto output = OutputMessagePool::getOutputMessage (true );
2929
3030 output->addByte (0x0B );
3131 output->addString (message);
@@ -214,7 +214,7 @@ void ProtocolLogin::onSendMessage(const OutputMessage_ptr &msg) {
214214}
215215
216216void ProtocolLogin::sendLoginChallenge () {
217- auto output = OutputMessagePool::getOutputMessage ();
217+ auto output = OutputMessagePool::getOutputMessage (true );
218218 static std::random_device rd;
219219 static std::ranlux24 generator (rd ());
220220 static std::uniform_int_distribution<uint16_t > randNumber (0x00 , 0xFF );
You can’t perform that action at this time.
0 commit comments