From 2f43249aa8e1ba6de8248cd09f41c59b27252412 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Sat, 1 Dec 2018 15:23:48 -0500 Subject: [PATCH] regex filter doesnt apply to console --- extensions/regexfilter/regexfilter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/regexfilter/regexfilter.cpp b/extensions/regexfilter/regexfilter.cpp index ec1031f..fe22a5e 100644 --- a/extensions/regexfilter/regexfilter.cpp +++ b/extensions/regexfilter/regexfilter.cpp @@ -24,7 +24,7 @@ BOOL WINAPI DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved bool ProcessSentence(std::wstring& sentence, SentenceInfo sentenceInfo) { - if (w == nullptr) return false; + if (w == nullptr || sentenceInfo["hook address"] == -1) return false; std::lock_guard l(w->m); sentence = std::regex_replace(sentence, w->regex, L""); return true;