Commit 2c5b243d authored by Pierre Ynard's avatar Pierre Ynard

luarc: remove development debug

If luarc is mature enough to replace oldrc, then I guess this is not
needed anymore
parent f271a2ef
...@@ -40,8 +40,6 @@ description= ...@@ -40,8 +40,6 @@ description=
Configuration options setable throught the --lua-config option are: Configuration options setable throught the --lua-config option are:
* hosts: A list of hosts to listen on. * hosts: A list of hosts to listen on.
* host: A host to listen on. (won't be used if `hosts' is set) * host: A host to listen on. (won't be used if `hosts' is set)
* eval: Add eval command to evaluate lua expressions. Set to any value to
enable.
The following can be set using the --lua-config option or in the interface The following can be set using the --lua-config option or in the interface
itself using the `set' command: itself using the `set' command:
* prompt: The prompt. * prompt: The prompt.
...@@ -131,10 +129,6 @@ function alias(client,value) ...@@ -131,10 +129,6 @@ function alias(client,value)
end end
end end
function fixme(name,client)
client:append( "FIXME: unimplemented command `"..name.."'." )
end
function logout(name,client) function logout(name,client)
if client.type == host.client_type.net then if client.type == host.client_type.net then
client:send("Bye-bye!\r\n") client:send("Bye-bye!\r\n")
...@@ -489,10 +483,6 @@ function hotkey(name, client, value) ...@@ -489,10 +483,6 @@ function hotkey(name, client, value)
end end
end end
function eval(client,val)
client:append(tostring(loadstring("return "..val)()))
end
--[[ Declare commands, register their callback functions and provide --[[ Declare commands, register their callback functions and provide
help strings here. help strings here.
Syntax is: Syntax is:
...@@ -566,10 +556,6 @@ commands_ordered = { ...@@ -566,10 +556,6 @@ commands_ordered = {
{ "shutdown"; { func = shutdown; help = "shutdown VLC" } }; { "shutdown"; { func = shutdown; help = "shutdown VLC" } };
} }
if config.eval then
commands_ordered[#commands_ordered] = { "eval"; { func = skip(eval); help = "eval some lua (*debug*)"; adv =true } }
end
commands = {} commands = {}
for i, cmd in ipairs( commands_ordered ) do for i, cmd in ipairs( commands_ordered ) do
if #cmd == 2 then if #cmd == 2 then
...@@ -592,25 +578,6 @@ for c,_ in pairs(commands) do ...@@ -592,25 +578,6 @@ for c,_ in pairs(commands) do
end end
env.coldwidth = env.colwidth + 1 env.coldwidth = env.colwidth + 1
-- Count unimplemented functions
do
local count = 0
local list = "("
for c,v in pairs(commands) do
if v.func == fixme then
count = count + 1
if count ~= 1 then
list = list..","
end
list = list..c
end
end
list = list..")"
if count ~= 0 and env.welcome and env.welcome ~= "" then
env.welcome = env.welcome .. "\r\nWarning: "..count.." functions are still unimplemented "..list.."."
end
end
--[[ Utils ]] --[[ Utils ]]
function split_input(input) function split_input(input)
local input = strip(input) local input = strip(input)
......
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