You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When processing an event from RCReader, and one of the regexes on the BES is for some reason corrupt, we currently throw and not catch it until the outer try/catch from RCReader.rcirc_OnChannelMessage which then decides to ignore the message and move on.
Oct 13 00:04:19 cvn-app8 CVNBot.exe[8766]: ERROR [RCReader] CVNBot.RCReader Failed to handle RCEvent
System.ArgumentException: parsing "(?:A[^\A-z0-9]N[^\A-z0-9]A[^\A-z0-9]N[^\A-z0-9]I[^\A-z0-9]Z[^\A-z0-9]I|__ping__:Vito-Genovese, HakanIST)" - Unrecognized escape sequence \A.
at System.Text.RegularExpressions.RegexParser.ScanCharEscape ()
at System.Text.RegularExpressions.RegexParser.ScanCharClass (..)
at System.Text.RegularExpressions.RegexParser.CountCaptures ()
at System.Text.RegularExpressions.RegexParser.Parse (..)
at System.Text.RegularExpressions.Regex..ctor (..)
at System.Text.RegularExpressions.Regex.IsMatch (..)
at System.Text.RegularExpressions.Regex.IsMatch (..)
at CVNBot.ListManager.matchesList (System.String title, System.Int32 list)
at CVNBot.Program.ReactToRCEvent (CVNBot.RCEvent r)
at CVNBot.RCReader.rcirc_OnChannelMessage (System.Object sender, Meebey.SmartIrc4net.IrcEventArgs e)
Instead, we should catch these within ListManager.matchesList and just return false, the same way as if the regex was working but didn't match (which is the most common case).
The text was updated successfully, but these errors were encountered:
When processing an event from RCReader, and one of the regexes on the
BES
is for some reason corrupt, we currently throw and not catch it until the outer try/catch fromRCReader.rcirc_OnChannelMessage
which then decides to ignore the message and move on.Instead, we should catch these within
ListManager.matchesList
and just return false, the same way as if the regex was working but didn't match (which is the most common case).The text was updated successfully, but these errors were encountered: