Commit b05eb2f3 authored by Tim's avatar Tim

Strip colour characters from outgoing messages

parent 43d5f59b
......@@ -348,13 +348,17 @@ void EnqueueIfMatch(const PCHAR Line)
PLUGIN_API DWORD OnWriteChatColor(PCHAR Line, DWORD Color, DWORD Filter)
{
EnqueueIfMatch(Line);
char cleanLine[2048] = { 0 };
StripMQChat(Line, cleanLine);
EnqueueIfMatch(cleanLine);
return 0;
}
PLUGIN_API DWORD OnIncomingChat(PCHAR Line, DWORD Color)
{
EnqueueIfMatch(Line);
char cleanLine[2048] = { 0 };
StripMQChat(Line, cleanLine);
EnqueueIfMatch(cleanLine);
return 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment