diff --git a/CHANGELOG.md b/CHANGELOG.md index 98cb402..7b056ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,13 @@ variables (`~`) not working as intended. This was introduced in refactoring work that was done for 4.4. +## RatAttack 6.3.2 + +### Fixed + +* Made case list thread safe. Probably only ever impacted my own specific setup, + but still a huge 🤦. + ----- # 4.4 (2022-05-31) diff --git a/VERSION b/VERSION index 0428d65..1793ae0 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -4.4 +4.4.1 diff --git a/plugins/RatAttack/RatAttack.cs b/plugins/RatAttack/RatAttack.cs index e1650b1..6ffd714 100644 --- a/plugins/RatAttack/RatAttack.cs +++ b/plugins/RatAttack/RatAttack.cs @@ -20,7 +20,7 @@ #nullable enable using System; -using System.Collections.Generic; +using System.Collections.Concurrent; using System.Diagnostics; using System.Text.RegularExpressions; @@ -33,7 +33,7 @@ namespace RatAttack /// public class RatAttack { - private static readonly Version VERSION = new ("6.3.1"); + private static readonly Version VERSION = new ("6.3.2"); private static readonly Regex RatsignalRegex = new ( @"^RATSIGNAL Case #(?\d+) (?(PC|Xbox|Playstation))(? \(Code Red\))?(? \(Odyssey\))? – CMDR (?.+) – System: (None|u\u200bnknown system|""(?.+)"" \((?([a-zA-Z0-9\s\(\)\-/]*(~?[0-9,\.]+ LY (""[a-zA-Z\-]+"" of|from) [a-zA-Z0-9\s\*\-]+)?( \([a-zA-Z\s]+\))?|Not found in galaxy database|Invalid system name))\)(? \(((?.*) )?Permit Required\))?) – Language: (?[a-zA-z0-9\x7f-\xff\-\(\)&,\s\.]+)( – Nick: (?[a-zA-Z0-9_\[\]\-]+))? \((PC|XB|PS)_SIGNAL\)\v*$"); @@ -42,7 +42,7 @@ namespace RatAttack private static VoiceAttackLog? log; private static VoiceAttackCommands? commands; - private static Dictionary CaseList { get; } = new (); + private static ConcurrentDictionary CaseList { get; } = new (); private static dynamic? VA { get; set; } diff --git a/plugins/VoiceAttack-base/base.cs b/plugins/VoiceAttack-base/base.cs index d308260..bd8eb0e 100644 --- a/plugins/VoiceAttack-base/base.cs +++ b/plugins/VoiceAttack-base/base.cs @@ -39,7 +39,7 @@ namespace alterNERDtive [System.Diagnostics.CodeAnalysis.SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1649:File name should match first type name", Justification = "F off :)")] public class BasePlugin { - private static readonly Version VERSION = new ("4.4"); + private static readonly Version VERSION = new ("4.4.1-dev"); private static readonly Dictionary Profiles = new () {