From 3d8108f339b7bddc02ae672f7dc12eb8ab223a6c Mon Sep 17 00:00:00 2001 From: RaidMax Date: Sat, 8 Sep 2018 20:20:11 -0500 Subject: [PATCH] fixed profanity bug fix the shared GUID connect fix linux log issue --- Application/BuildScripts/PostPublish.bat | 5 ++++- Application/Server.cs | 4 ++-- DiscordWebhook/DiscordWebhook.pyproj | 9 +++++++-- IW4MAdmin.sln | 2 +- Plugins/ProfanityDeterment/Plugin.cs | 2 +- Plugins/ScriptPlugins/SharedGUIDKick.js | 2 +- Plugins/Stats/Helpers/StatManager.cs | 14 +++++++------- SharedGUIDKick.js | 24 ------------------------ _commands.gsc | 2 +- 9 files changed, 24 insertions(+), 40 deletions(-) delete mode 100644 SharedGUIDKick.js diff --git a/Application/BuildScripts/PostPublish.bat b/Application/BuildScripts/PostPublish.bat index 666e737f4..a8d975aad 100644 --- a/Application/BuildScripts/PostPublish.bat +++ b/Application/BuildScripts/PostPublish.bat @@ -54,6 +54,9 @@ del "%SolutionDir%Publish\Windows\*pdb" if exist "%SolutionDir%Publish\WindowsPrerelease\web.config" del "%SolutionDir%Publish\WindowsPrerelease\web.config" del "%SolutionDir%Publish\WindowsPrerelease\*pdb" -echo making start script +echo making start scripts @echo dotnet IW4MAdmin.dll > "%SolutionDir%Publish\WindowsPrerelease\StartIW4MAdmin.cmd" @echo dotnet IW4MAdmin.dll > "%SolutionDir%Publish\Windows\StartIW4MAdmin.cmd" + +@(echo #!/bin/bash && echo dotnet IW4MAdmin.dll) > "%SolutionDir%Publish\WindowsPrerelease\StartIW4MAdmin.sh" +@(echo #!/bin/bash && echo dotnet IW4MAdmin.dll) > "%SolutionDir%Publish\Windows\StartIW4MAdmin.sh" diff --git a/Application/Server.cs b/Application/Server.cs index 5ca1034f0..620c5678b 100644 --- a/Application/Server.cs +++ b/Application/Server.cs @@ -808,10 +808,10 @@ namespace IW4MAdmin // hopefully fix wine drive name mangling if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) { - logPath = Regex.Replace($"{Path.DirectorySeparatorChar}{LogPath}", @"[A-Z]:", ""); + logPath = Regex.Replace($"{Path.DirectorySeparatorChar}{LogPath}", @"[A-Z]:/", ""); } - if (!File.Exists(LogPath) && !logPath.StartsWith("http")) + if (!File.Exists(logPath) && !logPath.StartsWith("http")) { Logger.WriteError($"{logPath} {loc["SERVER_ERROR_DNE"]}"); #if !DEBUG diff --git a/DiscordWebhook/DiscordWebhook.pyproj b/DiscordWebhook/DiscordWebhook.pyproj index 1a1ee7ea4..f8020fba8 100644 --- a/DiscordWebhook/DiscordWebhook.pyproj +++ b/DiscordWebhook/DiscordWebhook.pyproj @@ -16,6 +16,7 @@ Standard Python launcher False DEBUG=True + C:\Projects\IW4M-Admin\Publish\WindowsPrerelease\DiscordWebhook true @@ -41,8 +42,12 @@ - - + + True + + + True +