Log messages from rooms, games and chats

This commit is contained in:
Fabio Bas 2014-12-13 18:43:59 +01:00
parent 02978ce404
commit c875054fb5
3 changed files with 10 additions and 1 deletions

View file

@ -767,6 +767,8 @@ Response::ResponseCode Server_Player::cmdGameSay(const Command_GameSay &cmd, Res
Event_GameSay event;
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());
return Response::RespOk;
}