minor fix
This commit is contained in:
parent
4e2bb68e86
commit
aede9d8bdd
4 changed files with 12 additions and 4 deletions
|
|
@ -22,7 +22,7 @@ namespace MosswartMassacre
|
||||||
{
|
{
|
||||||
// Remove the /mm prefix and trim
|
// Remove the /mm prefix and trim
|
||||||
string[] args = commandText.Length > 3
|
string[] args = commandText.Length > 3
|
||||||
? commandText.Substring(3).Trim().Split(' ', StringSplitOptions.RemoveEmptyEntries)
|
? commandText.Substring(3).Trim().Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries)
|
||||||
: Array.Empty<string>();
|
: Array.Empty<string>();
|
||||||
if (args.Length == 0)
|
if (args.Length == 0)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -48,6 +48,9 @@
|
||||||
<EmbedInteropTypes>False</EmbedInteropTypes>
|
<EmbedInteropTypes>False</EmbedInteropTypes>
|
||||||
<HintPath>lib\Decal.Interop.Inject.dll</HintPath>
|
<HintPath>lib\Decal.Interop.Inject.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
<Reference Include="System.Configuration">
|
||||||
|
<HintPath>$(FrameworkPathOverride)\System.Configuration.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
|
<HintPath>..\packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
|
|
||||||
|
|
@ -175,7 +175,10 @@ namespace MosswartMassacre
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
private bool IsKilledByMeMessage(string text)
|
/// <summary>
|
||||||
|
/// Determines if the chat text indicates a kill by this character.
|
||||||
|
/// </summary>
|
||||||
|
public static bool IsKilledByMeMessage(string text)
|
||||||
{
|
{
|
||||||
// Check each precompiled kill message pattern
|
// Check each precompiled kill message pattern
|
||||||
foreach (var regex in KillRegexes)
|
foreach (var regex in KillRegexes)
|
||||||
|
|
@ -185,7 +188,10 @@ namespace MosswartMassacre
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
private bool IsRareDiscoveryMessage(string text, out string rareTextOnly)
|
/// <summary>
|
||||||
|
/// Determines if the chat text indicates a rare discovery by this character.
|
||||||
|
/// </summary>
|
||||||
|
public static bool IsRareDiscoveryMessage(string text, out string rareTextOnly)
|
||||||
{
|
{
|
||||||
rareTextOnly = null;
|
rareTextOnly = null;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,6 @@ namespace MosswartMassacre
|
||||||
private bool _remoteCommandsEnabled = false;
|
private bool _remoteCommandsEnabled = false;
|
||||||
private bool _rareMetaEnabled = true;
|
private bool _rareMetaEnabled = true;
|
||||||
private bool _httpServerEnabled = false;
|
private bool _httpServerEnabled = false;
|
||||||
private bool _telemetryEnabled = false;
|
|
||||||
private bool _webSocketEnabled = false;
|
private bool _webSocketEnabled = false;
|
||||||
private string _charTag = "default";
|
private string _charTag = "default";
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue