Skip to content
This repository has been archived by the owner on Aug 10, 2024. It is now read-only.

Commit

Permalink
Fix logs command
Browse files Browse the repository at this point in the history
  • Loading branch information
ntm5 authored Jul 11, 2024
1 parent 0d13e7d commit 772d65c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/TTT.Logs/LogsCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public void Command_Logs(CCSPlayerController? executor, CommandInfo info)

var roundId = service.GetCurrentRound();

if (!int.TryParse(roundIdString, out roundId))
if (string.IsNullOrEmpty(roundIdString) && !int.TryParse(roundIdString, out roundId))
{
info.ReplyToCommand(StringUtils.FormatTTT("Invalid round id, /logs <roundId>"));
return;
Expand Down

0 comments on commit 772d65c

Please sign in to comment.