From 258e608808ff371a72c3562b5310d150f626f541 Mon Sep 17 00:00:00 2001 From: past-due <30942300+past-due@users.noreply.github.com> Date: Tue, 12 Nov 2024 17:45:19 -0500 Subject: [PATCH] Fix: Add missing space in WZEVENT output for hostChatPermissions and playerLeft --- src/multiint.cpp | 2 +- src/multijoin.cpp | 2 +- src/stdinreader.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/multiint.cpp b/src/multiint.cpp index 69d84621be2..e3e3ece0cf7 100644 --- a/src/multiint.cpp +++ b/src/multiint.cpp @@ -6889,7 +6889,7 @@ class WzHostLobbyOperationsInterface : public HostLobbyOperationsInterface std::string playerVerifiedStatus = (ingame.VerifiedIdentity[player]) ? "V" : "?"; std::string playerName = NetPlay.players[player].name; std::string playerNameB64 = base64Encode(std::vector(playerName.begin(), playerName.end())); - wz_command_interface_output("WZEVENT: hostChatPermissions=%s: %" PRIu32 " %" PRIu32 "%s %s %s %s %s\n", (freeChatEnabled) ? "Y" : "N", player, gameTime, playerPublicKeyB64.c_str(), playerIdentityHash.c_str(), playerVerifiedStatus.c_str(), playerNameB64.c_str(), NetPlay.players[player].IPtextAddress); + wz_command_interface_output("WZEVENT: hostChatPermissions=%s: %" PRIu32 " %" PRIu32 " %s %s %s %s %s\n", (freeChatEnabled) ? "Y" : "N", player, gameTime, playerPublicKeyB64.c_str(), playerIdentityHash.c_str(), playerVerifiedStatus.c_str(), playerNameB64.c_str(), NetPlay.players[player].IPtextAddress); } return true; diff --git a/src/multijoin.cpp b/src/multijoin.cpp index 8ee450cd032..9454216a6b7 100644 --- a/src/multijoin.cpp +++ b/src/multijoin.cpp @@ -479,7 +479,7 @@ bool MultiPlayerLeave(UDWORD playerIndex) std::string playerVerifiedStatus = (ingame.VerifiedIdentity[playerIndex]) ? "V" : "?"; std::string playerName = NetPlay.players[playerIndex].name; std::string playerNameB64 = base64Encode(std::vector(playerName.begin(), playerName.end())); - wz_command_interface_output("WZEVENT: playerLeft: %" PRIu32 " %" PRIu32 "%s %s %s %s %s\n", playerIndex, gameTime, playerPublicKeyB64.c_str(), playerIdentityHash.c_str(), playerVerifiedStatus.c_str(), playerNameB64.c_str(), NetPlay.players[playerIndex].IPtextAddress); + wz_command_interface_output("WZEVENT: playerLeft: %" PRIu32 " %" PRIu32 " %s %s %s %s %s\n", playerIndex, gameTime, playerPublicKeyB64.c_str(), playerIdentityHash.c_str(), playerVerifiedStatus.c_str(), playerNameB64.c_str(), NetPlay.players[playerIndex].IPtextAddress); } if (ingame.localJoiningInProgress) diff --git a/src/stdinreader.cpp b/src/stdinreader.cpp index 8fba6f4db70..7b05b94c857 100644 --- a/src/stdinreader.cpp +++ b/src/stdinreader.cpp @@ -578,7 +578,7 @@ static bool changeHostChatPermissionsForActivePlayerWithIdentity(const std::stri std::string playerVerifiedStatus = (ingame.VerifiedIdentity[i]) ? "V" : "?"; std::string playerName = NetPlay.players[i].name; std::string playerNameB64 = base64Encode(std::vector(playerName.begin(), playerName.end())); - wz_command_interface_output("WZEVENT: hostChatPermissions=%s: %" PRIu32 " %" PRIu32 "%s %s %s %s %s\n", (freeChatEnabled) ? "Y" : "N", i, gameTime, playerPublicKeyB64.c_str(), playerIdentityHash.c_str(), playerVerifiedStatus.c_str(), playerNameB64.c_str(), NetPlay.players[i].IPtextAddress); + wz_command_interface_output("WZEVENT: hostChatPermissions=%s: %" PRIu32 " %" PRIu32 " %s %s %s %s %s\n", (freeChatEnabled) ? "Y" : "N", i, gameTime, playerPublicKeyB64.c_str(), playerIdentityHash.c_str(), playerVerifiedStatus.c_str(), playerNameB64.c_str(), NetPlay.players[i].IPtextAddress); }); if (result)