Un-hardcode ban message

This commit is contained in:
Kawe Mazidjatari 2022-04-05 00:55:59 +02:00
parent 7258a35ff5
commit 60cd5a000a
2 changed files with 3 additions and 1 deletions

View File

@ -318,7 +318,7 @@ bool R5Net::Client::GetClientIsBanned(const std::string svIpAddress, std::int64_
{
if (jsResultBody["isBanned"].is_boolean() && jsResultBody["isBanned"].get<bool>())
{
svOutErrCl = jsResultBody.value("errCl", "Generic error (code:gen). Contact R5Reloaded developers.");
svOutErrCl = jsResultBody.value("errCl", "#DISCONNECT_BANNED");
return true;
}
}

View File

@ -726,6 +726,8 @@
"PROMO_RIGHT_TITLE" "Yes2"
"PROMO_RIGHT_DESCRIPTION" "Yes3"
"PROMO_SDK_ERROR" "You should not see this."
"DISCONNECT_BANNED" "The client's game account has been banned: Banned"
}
}
}