Skip to content

Commit

Permalink
reuse minclientversion where possible
Browse files Browse the repository at this point in the history
Co-authored-by: Tixx <[email protected]>
  • Loading branch information
lionkor and WiserTixx authored Oct 9, 2024
1 parent 7dd2d89 commit c39beb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TNetwork.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ std::shared_ptr<TClient> TNetwork::Authentication(TConnection&& RawConnection) {
Version MinClientVersion = Application::ClientMinimumVersion();
if (Application::IsOutdated(ClientVersion, MinClientVersion)) {
beammp_errorf("Client tried to connect with version '{}', but only versions >= {} are allowed",
ClientVersion.AsString(), Application::ClientMinimumVersion().AsString());
ClientVersion.AsString(), MinClientVersion.AsString());
ClientKick(*Client, fmt::format("Outdated version, launcher version >={} required to join!", MinClientVersion.AsString()));
return nullptr;
}
Expand Down

0 comments on commit c39beb5

Please sign in to comment.