From afaf942ca872a205c7d6ec7d9d9fd566722c58b7 Mon Sep 17 00:00:00 2001 From: shroobloom <51099066+shroobloom@users.noreply.github.com> Date: Tue, 4 Feb 2025 21:46:34 -0800 Subject: [PATCH] Fix modifyChat exploit (#3259) --- lua/entities/gmod_wire_expression2/core/chat.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/entities/gmod_wire_expression2/core/chat.lua b/lua/entities/gmod_wire_expression2/core/chat.lua index e056266b..856bed65 100644 --- a/lua/entities/gmod_wire_expression2/core/chat.lua +++ b/lua/entities/gmod_wire_expression2/core/chat.lua @@ -19,6 +19,8 @@ registerCallback("destruct",function(self) end) hook.Add("PlayerSay","Exp2TextReceiving", function(ply, text, teamchat) + chipHideChat, chipChatReplacement = nil, nil + local entry = { text, CurTime(), ply, teamchat } TextList[ply:EntIndex()] = entry TextList.last = entry @@ -169,4 +171,4 @@ E2Lib.registerEvent("chat", { { "Player", "e" }, { "Message", "s" }, { "Team", "n" } -}) \ No newline at end of file +})