Skip to content

Commit

Permalink
Fix modifyChat exploit (#3259)
Browse files Browse the repository at this point in the history
  • Loading branch information
shroobloom authored Feb 5, 2025
1 parent a667672 commit afaf942
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/entities/gmod_wire_expression2/core/chat.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -169,4 +171,4 @@ E2Lib.registerEvent("chat", {
{ "Player", "e" },
{ "Message", "s" },
{ "Team", "n" }
})
})

0 comments on commit afaf942

Please sign in to comment.