-- lua module to prevent ws overrun exploit -- version: 2 -- author: reyalp@gmail.com -- confugration: -- add wsfix.lua to lua_modules, or merge into your existing et_ClientCommand -- TY McSteve for reporting this to us. function et_ClientCommand(cno,cmd) if string.lower(cmd) == "ws" then local n = tonumber(et.trap_Argv(1)) if not n then et.G_LogPrint(string.format("wsfix: client %d bad ws not a number [%s]\n",cno,tostring(et.trap_Argv(1)))) return 1 end if n < 0 or n > 21 then et.G_LogPrint(string.format("wsfix: client %d bad ws %d\n",cno,n)) return 1 end end return 0 end