Commit 4e5c16e3 authored by Pierre Ynard's avatar Pierre Ynard

luatelnet: don't replace \r by extra \n

It's useless and create bogus empty commands, that output ugly blank
lines and crap during login
(cherry picked from commit a94688f9)
Signed-off-by: default avatarPierre Ynard <linkfanel@yahoo.fr>
parent ec9be788
...@@ -181,7 +181,7 @@ while not vlc.misc.should_die() do ...@@ -181,7 +181,7 @@ while not vlc.misc.should_die() do
-- Handle reads -- Handle reads
for _, client in pairs(r) do for _, client in pairs(r) do
local str = client.cmds .. string.gsub(client:recv(1000), "\r", "\n") local str = client.cmds .. client:recv(1000)
if not str then -- the telnet client program has leave if not str then -- the telnet client program has leave
client.cmds = "quit" client.cmds = "quit"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment