From b4e3e8526aaaad81ff77ba468e3a00803b311523 Mon Sep 17 00:00:00 2001 From: RaidMax Date: Sun, 17 Feb 2019 13:16:48 -0600 Subject: [PATCH] fix for issue #66 --- Application/Application.csproj | 6 +++--- SharedLibraryCore/Services/ChangeHistoryService.cs | 8 ++++++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Application/Application.csproj b/Application/Application.csproj index 7eca5dcb4..35cff8ac3 100644 --- a/Application/Application.csproj +++ b/Application/Application.csproj @@ -6,7 +6,7 @@ 2.2.2 false RaidMax.IW4MAdmin.Application - 2.2.5.2 + 2.2.5.3 RaidMax Forever None IW4MAdmin @@ -31,8 +31,8 @@ true true - 2.2.5.2 - 2.2.5.2 + 2.2.5.3 + 2.2.5.3 diff --git a/SharedLibraryCore/Services/ChangeHistoryService.cs b/SharedLibraryCore/Services/ChangeHistoryService.cs index b27a728ce..c9d737304 100644 --- a/SharedLibraryCore/Services/ChangeHistoryService.cs +++ b/SharedLibraryCore/Services/ChangeHistoryService.cs @@ -4,6 +4,7 @@ using SharedLibraryCore.Events; using SharedLibraryCore.Interfaces; using System; using System.Collections.Generic; +using System.Linq; using System.Text; using System.Threading.Tasks; @@ -32,6 +33,13 @@ namespace SharedLibraryCore.Services }; break; case GameEvent.EventType.Command: + if (e.Extra is Command cmd) + { + if (cmd.Name == "login" || cmd.Name == "setpassword") + { + e.Message = string.Join(' ', e.Message.Split(" ").Select((arg, index) => index > 0 ? "*****" : arg)); + } + } change = new EFChangeHistory() { OriginEntityId = e.Origin.ClientId,