From a585ce4a75bbd704b0c15ed98cfc115400872169 Mon Sep 17 00:00:00 2001 From: 20kdc Date: Thu, 2 Apr 2020 00:15:36 +0100 Subject: [PATCH] svc-t: Just realized will/won't need responses too --- code/apps/svc-t.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/apps/svc-t.lua b/code/apps/svc-t.lua index 1daab00..e1e7659 100644 --- a/code/apps/svc-t.lua +++ b/code/apps/svc-t.lua @@ -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)