svc-t: Just realized will/won't need responses too

This commit is contained in:
20kdc 2020-04-02 00:15:36 +01:00
parent 3ed1cebe25
commit a585ce4a75
1 changed files with 6 additions and 0 deletions

View File

@ -188,6 +188,12 @@ local function incoming(s)
v("telnet", "\xFF\xFE\x01")
end
setLineEditing(true)
elseif cmd == 251 or cmd == 252 then
-- WILL/WON'T (x) (respond with DON'T (X))
local res = "\xFF\xFE" .. string.char(param)
for _, v in pairs(sendSigs) do
v("telnet", res)
end
elseif cmd == 253 or cmd == 254 then
-- DO/DON'T (x) (respond with WON'T (X))
local res = "\xFF\xFC" .. string.char(param)