Fix modifyChat exploit (#3259)

This commit is contained in:
shroobloom 2025-02-04 21:46:34 -08:00 committed by GitHub
parent a667672c3b
commit afaf942ca8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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" }
})
})