Skip to content

Commit 68850c6

Browse files
committed
Add CommandPrefix not empty check in ValidateSettings
1 parent c99f3cf commit 68850c6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Nuclei/Features/NucleiConfig.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,12 @@ internal static void ValidateSettings()
202202
Nuclei.Logger?.LogWarning("TargetFrameRate cannot be less than -1! Setting to -1 (unlimited).");
203203
TargetFrameRate.Value = -1;
204204
}
205+
206+
if (CommandPrefix!.Value.Length == 0)
207+
{
208+
Nuclei.Logger?.LogWarning("CommandPrefix must not be empty! Resetting to default value.");
209+
CommandPrefix.Value = DefaultCommandPrefix;
210+
}
205211

206212
ValidateForUserErrors();
207213

0 commit comments

Comments
 (0)