pass ServerInfo_User down the chain (#5542)

This commit is contained in:
RickyRister 2025-02-01 17:04:49 -08:00 committed by GitHub
parent 26c0cdc072
commit 0fc05e15cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 17 additions and 28 deletions

View file

@ -882,8 +882,7 @@ void TabGame::closeGame()
void TabGame::eventSpectatorSay(const Event_GameSay &event, int eventPlayerId, const GameEventContext & /*context*/)
{
const ServerInfo_User &userInfo = spectators.value(eventPlayerId);
messageLog->logSpectatorSay(QString::fromStdString(userInfo.name()), UserLevelFlags(userInfo.user_level()),
QString::fromStdString(userInfo.privlevel()), QString::fromStdString(event.message()));
messageLog->logSpectatorSay(userInfo, QString::fromStdString(event.message()));
}
void TabGame::eventSpectatorLeave(const Event_Leave &event, int eventPlayerId, const GameEventContext & /*context*/)