Skip to content

Commit

Permalink
fix saved infraction duration (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
Faramour authored Oct 22, 2024
1 parent 742bb92 commit 5180276
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/adminsystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1472,13 +1472,13 @@ void ParseInfraction(const CCommand &args, CCSPlayerController* pAdmin, bool bAd
switch (infType)
{
case CInfractionBase::Mute:
infraction = new CMuteInfraction(0, zpTarget->GetSteamId64());
infraction = new CMuteInfraction(iDuration, zpTarget->GetSteamId64());
break;
case CInfractionBase::Gag:
infraction = new CGagInfraction(0, zpTarget->GetSteamId64());
infraction = new CGagInfraction(iDuration, zpTarget->GetSteamId64());
break;
case CInfractionBase::Ban:
infraction = new CBanInfraction(0, zpTarget->GetSteamId64());
infraction = new CBanInfraction(iDuration, zpTarget->GetSteamId64());
break;
default:
// This should never be reached, since we it means we are trying to apply an unimplemented block type
Expand Down Expand Up @@ -1556,4 +1556,4 @@ const char* GetActionPhrase(CInfractionBase::EInfractionType infType, GrammarTen
}
}
return "";
}
}

0 comments on commit 5180276

Please sign in to comment.