regex filter doesnt apply to console

This commit is contained in:
Akash Mozumdar 2018-12-01 15:23:48 -05:00
parent 90d32c011d
commit 2f43249aa8

View File

@ -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;