forked from SoDOff-Project/sodoff-mmo
fix management command condition
This commit is contained in:
parent
b3724d9882
commit
ac2b8d72ff
@ -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(' ');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user