Skip to content

Commit bf6563f

Browse files
committed
Fix bans handling counting lobbies
1 parent b613a4f commit bf6563f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gameserver/event-handler/crime-log-created.handler.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ export class CrimeLogCreatedHandler
8787
if (!thisCrime) return;
8888

8989
// We don't punish for crimes in bots
90-
if (thisCrime.lobby_type === MatchmakingMode.BOTS) {
90+
if (thisCrime.lobby_type === MatchmakingMode.BOTS || thisCrime.lobby_type === MatchmakingMode.LOBBY) {
9191
thisCrime.handled = true;
9292
thisCrime.banTime = 0;
9393
await this.playerCrimeLogEntityRepository.save(thisCrime);
94-
this.logger.verbose("Don't punish for crime in bot match", {
94+
this.logger.verbose("Don't punish for crime in bot/lobby match", {
9595
steam_id: thisCrime.steam_id,
9696
id: thisCrime.id,
9797
crime: thisCrime.crime,

0 commit comments

Comments
 (0)