Fix CA1310, CA1311
This commit is contained in:
committed by
Matthias Mailänder
parent
d83e579dfe
commit
285443f10f
@@ -34,7 +34,7 @@ namespace OpenRA.Mods.Common.Commands
|
||||
|
||||
public bool OnChat(string playername, string message)
|
||||
{
|
||||
if (message.StartsWith("/"))
|
||||
if (message.StartsWith('/'))
|
||||
{
|
||||
var name = message[1..].Split(' ')[0].ToLowerInvariant();
|
||||
var command = Commands.FirstOrDefault(x => x.Key == name);
|
||||
|
||||
Reference in New Issue
Block a user