Skip to content

Commit

Permalink
Fix: Add missing space in WZEVENT output for hostChatPermissions and …
Browse files Browse the repository at this point in the history
…playerLeft
  • Loading branch information
past-due committed Nov 13, 2024
1 parent d75654e commit 258e608
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/multiint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<unsigned char>(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;
Expand Down
2 changes: 1 addition & 1 deletion src/multijoin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<unsigned char>(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)
Expand Down
2 changes: 1 addition & 1 deletion src/stdinreader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<unsigned char>(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)
Expand Down

0 comments on commit 258e608

Please sign in to comment.