Earu / EasyChat

A modular Garry's Mod chat addon for both users and developers. (EOL 2025)
https://steamcommunity.com/sharedfiles/filedetails/?id=1182471500
GNU General Public License v3.0
90 stars 31 forks source link

Sanitize usage of Lua variables in JS code properly #89

Closed Tenrys closed 2 years ago

Tenrys commented 2 years ago

Disabled SetAllowLua since it only causes trouble

I don't know if this is any slower but it seems to work perfectly fine, found out about a new way to use DHTML.AddFunction with this, lol You can pass a JS callback as the last argument of an AddFunction function and use the return values of the Lua function called as its arguments

I hope I haven't missed anything, really