1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

fix for issue #66

This commit is contained in:
RaidMax
2019-02-17 13:16:48 -06:00
parent 7433390b5a
commit c23054ea6b
2 changed files with 11 additions and 3 deletions

View File

@ -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,