From 929da2299771d1f62ee2b5035cb0942c5c09ce28 Mon Sep 17 00:00:00 2001 From: 13xforever Date: Tue, 10 Mar 2020 04:06:26 +0500 Subject: [PATCH] fix wrong context for OCR checks --- CompatBot/EventHandlers/MediaScreenshotMonitor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CompatBot/EventHandlers/MediaScreenshotMonitor.cs b/CompatBot/EventHandlers/MediaScreenshotMonitor.cs index cef150a7..38af5f1c 100644 --- a/CompatBot/EventHandlers/MediaScreenshotMonitor.cs +++ b/CompatBot/EventHandlers/MediaScreenshotMonitor.cs @@ -97,7 +97,7 @@ namespace CompatBot.EventHandlers foreach (var l in r.Lines) { Config.Log.Debug($"{prefix} {l.Text}"); - if (cnt && await ContentFilter.FindTriggerAsync(FilterContext.Log, l.Text).ConfigureAwait(false) is Piracystring hit) + if (cnt && await ContentFilter.FindTriggerAsync(FilterContext.Chat, l.Text).ConfigureAwait(false) is Piracystring hit) { FilterAction suppressFlags = 0; if ("media".Equals(item.evt.Channel.Name))