diff options
author | BobTheBob9 <for.oliver.kirkham@gmail.com> | 2023-01-08 00:39:43 +0000 |
---|---|---|
committer | BobTheBob9 <for.oliver.kirkham@gmail.com> | 2023-01-08 00:39:43 +0000 |
commit | 955eaba6c4481a81b56d96a0cdacf5a3570dc9c3 (patch) | |
tree | 582b343a3574fbeebe188906ae7ac844cb85842c /NorthstarDLL/scripts/client/clientchathooks.cpp | |
parent | e9f8a34dc3ca736f307cf195390aee7c8f5cb456 (diff) | |
parent | d4f90eafc91f83cca270e46164f435908dc94b9d (diff) | |
download | NorthstarLauncher-955eaba6c4481a81b56d96a0cdacf5a3570dc9c3.tar.gz NorthstarLauncher-955eaba6c4481a81b56d96a0cdacf5a3570dc9c3.zip |
Merge remote-tracking branch 'origin/main' into experimental-bots-pr
Diffstat (limited to 'NorthstarDLL/scripts/client/clientchathooks.cpp')
-rw-r--r-- | NorthstarDLL/scripts/client/clientchathooks.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/NorthstarDLL/scripts/client/clientchathooks.cpp b/NorthstarDLL/scripts/client/clientchathooks.cpp index 0fc68302..a1a9e503 100644 --- a/NorthstarDLL/scripts/client/clientchathooks.cpp +++ b/NorthstarDLL/scripts/client/clientchathooks.cpp @@ -1,5 +1,6 @@ #include "pch.h" #include "squirrel/squirrel.h" +#include "util/utils.h" #include "server/serverchathooks.h" #include "client/localchatwriter.h" @@ -30,6 +31,8 @@ void, __fastcall, (void* self, const char* message, int inboxId, bool isTeam, bo payload = message + 1; } + NS::Utils::RemoveAsciiControlSequences(const_cast<char*>(message), true); + SQRESULT result = g_pSquirrel<ScriptContext::CLIENT>->Call( "CHudChat_ProcessMessageStartThread", static_cast<int>(senderId) - 1, payload, isTeam, isDead, type); if (result == SQRESULT_ERROR) |