Commit 9d6a0a6a authored by Pierre Ynard's avatar Pierre Ynard

cli: use dedicated strip function

parent dbe127da
......@@ -802,7 +802,7 @@ while not vlc.misc.should_die() do
-- get the next command
local index = string.find(client.cmds, "\n")
client.buffer = string.gsub(string.sub(client.cmds, 0, index - 1), "^%s*(.-)%s*$", "%1")
client.buffer = strip(string.sub(client.cmds, 0, index - 1))
client.cmds = string.sub(client.cmds, index + 1)
-- Remove telnet commands from the command line
......
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