fix management command condition

This commit is contained in:
Spirtix 2024-04-07 17:12:09 +02:00
parent b3724d9882
commit ac2b8d72ff

View File

@ -30,7 +30,7 @@ public class ManagementCommandProcessor {
public static bool ProcessCommand(string message, Client client) { public static bool ProcessCommand(string message, Client client) {
if (!Configuration.ServerConfiguration.Authentication || !initialized) if (!Configuration.ServerConfiguration.Authentication || !initialized)
return false; return false;
if (!message.StartsWith("::") && message.Length < 3) if (!message.StartsWith("::") || message.Length < 3)
return false; return false;
string[] parts = message.Split(' '); string[] parts = message.Split(' ');