Fix "sender id" and "ip address" fields in game

This commit is contained in:
Fabio Bas
2015-01-01 16:20:57 +01:00
parent cd69bc8f9d
commit 925b4a83b0
2 changed files with 2 additions and 2 deletions

View File

@@ -768,7 +768,7 @@ Response::ResponseCode Server_Player::cmdGameSay(const Command_GameSay &cmd, Res
event.set_message(cmd.message());
ges.enqueueGameEvent(event, playerId);
game->getRoom()->getServer()->getDatabaseInterface()->logMessage(playerId, QString::fromStdString(userInfo->name()), QString::fromStdString(userInfo->address()), QString::fromStdString(cmd.message()), Server_DatabaseInterface::MessageTargetGame, game->getGameId(), game->getDescription());
game->getRoom()->getServer()->getDatabaseInterface()->logMessage(userInfo->id(), QString::fromStdString(userInfo->name()), QString::fromStdString(userInfo->address()), QString::fromStdString(cmd.message()), Server_DatabaseInterface::MessageTargetGame, game->getGameId(), game->getDescription());
return Response::RespOk;
}