From 2b5db5baf923a0c822e7ee048f218fd264e91f19 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 12 Nov 2014 16:56:14 +0300 Subject: Add missing packet field comments. --- src/net/ea/loginhandler.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/net/ea/loginhandler.cpp') diff --git a/src/net/ea/loginhandler.cpp b/src/net/ea/loginhandler.cpp index 8b2ec1ed1..34d5a0d02 100644 --- a/src/net/ea/loginhandler.cpp +++ b/src/net/ea/loginhandler.cpp @@ -234,6 +234,7 @@ void LoginHandler::processLoginError(Net::MessageIn &msg) { const uint8_t code = msg.readUInt8("error"); logger->log("Login::error code: %u", static_cast(code)); + std::string date = msg.readString(20, "date"); switch (code) { @@ -266,10 +267,8 @@ void LoginHandler::processLoginError(Net::MessageIn &msg) case 6: // TRANSLATORS: error message errorMessage = strprintf(_("You have been temporarily " - "banned from the game until " - "%s.\nPlease contact the GM " - "team via the forums."), - msg.readString(20).c_str()); + "banned from the game until %s.\nPlease contact the GM " + "team via the forums."), date.c_str()); break; case 7: // TRANSLATORS: error message -- cgit v1.2.3-60-g2f50