From 60cd5a000abbf16f90cd67e05ee471c9681cb005 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Tue, 5 Apr 2022 00:55:59 +0200 Subject: [PATCH] Un-hardcode ban message --- r5dev/networksystem/r5net.cpp | 2 +- r5dev/resource/playlist/playlists_r5_patch.txt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/r5dev/networksystem/r5net.cpp b/r5dev/networksystem/r5net.cpp index f9c04b72..ff0c2be6 100644 --- a/r5dev/networksystem/r5net.cpp +++ b/r5dev/networksystem/r5net.cpp @@ -318,7 +318,7 @@ bool R5Net::Client::GetClientIsBanned(const std::string svIpAddress, std::int64_ { if (jsResultBody["isBanned"].is_boolean() && jsResultBody["isBanned"].get()) { - svOutErrCl = jsResultBody.value("errCl", "Generic error (code:gen). Contact R5Reloaded developers."); + svOutErrCl = jsResultBody.value("errCl", "#DISCONNECT_BANNED"); return true; } } diff --git a/r5dev/resource/playlist/playlists_r5_patch.txt b/r5dev/resource/playlist/playlists_r5_patch.txt index 0d44e254..4afd3dca 100644 --- a/r5dev/resource/playlist/playlists_r5_patch.txt +++ b/r5dev/resource/playlist/playlists_r5_patch.txt @@ -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" } } }