From dde3449195459f71d6852f126a5c43f74aa62831 Mon Sep 17 00:00:00 2001 From: m Date: Sun, 17 Dec 2023 14:51:51 -0600 Subject: [PATCH] fix discord details --- src/client/component/discord.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/component/discord.cpp b/src/client/component/discord.cpp index 9c2299a6..ec8ab143 100644 --- a/src/client/component/discord.cpp +++ b/src/client/component/discord.cpp @@ -73,7 +73,9 @@ namespace discord const auto gametype_display_name = game::UI_GetGameTypeDisplayName(gametype_dvar->current.string); utils::string::strip(gametype_display_name, gametype, sizeof(gametype)); - discord_presence.details = utils::string::va("%s on %s", gametype, mapname); + static char details[0x80] = {0}; + strcpy_s(details, 0x80, utils::string::va("%s on %s", gametype, mapname)); + discord_presence.details = details; // setup Discord party (1 of 18) const auto client_state = *game::mp::client_state; @@ -211,8 +213,6 @@ namespace discord void join_game(const char* join_secret) { - console::debug("Discord: join_game called with secret '%s'\n", join_secret); - scheduler::once([=] { game::netadr_s target{};