diff --git a/Application/DefaultSettings.json b/Application/DefaultSettings.json index b26074fb..7a6cc131 100644 --- a/Application/DefaultSettings.json +++ b/Application/DefaultSettings.json @@ -1715,7 +1715,7 @@ "Name": "zm_theater" }, { - "Alias": "Moom", + "Alias": "Moon", "Name": "zm_moon" }, { diff --git a/Application/EventParsers/BaseEventParser.cs b/Application/EventParsers/BaseEventParser.cs index beceb7f3..3f49be57 100644 --- a/Application/EventParsers/BaseEventParser.cs +++ b/Application/EventParsers/BaseEventParser.cs @@ -588,11 +588,15 @@ namespace IW4MAdmin.Application.EventParsers return null; } - var message = matchResult.Values[Configuration.Say.GroupMapping[ParserRegex.GroupType.Message]] - .Replace(Configuration.LocalizeText, "") - .Trim(); + var message = new string(matchResult.Values[Configuration.Say.GroupMapping[ParserRegex.GroupType.Message]] + .Where(c => !char.IsControl(c)).ToArray()); - if (message.Length <= 0) + if (message.StartsWith("/")) + { + message = message[1..]; + } + + if (String.IsNullOrEmpty(message)) { return null; }