Commit 621afc68 authored by Antoine Cellerier's avatar Antoine Cellerier

Don't print welcome message if it's empty.

parent 4cf0140c
...@@ -562,7 +562,7 @@ do ...@@ -562,7 +562,7 @@ do
end end
end end
list = list..")" list = list..")"
if count ~= 0 and env.welcome then if count ~= 0 and env.welcome and env.welcome ~= "" then
env.welcome = env.welcome .. "\r\nWarning: "..count.." functions are still unimplemented "..list.."." env.welcome = env.welcome .. "\r\nWarning: "..count.." functions are still unimplemented "..list.."."
end end
end end
...@@ -623,7 +623,9 @@ h = host.host() ...@@ -623,7 +623,9 @@ h = host.host()
-- No auth -- No auth
h.status_callbacks[host.status.password] = function(client) h.status_callbacks[host.status.password] = function(client)
client.env = common.table_copy( env ) client.env = common.table_copy( env )
client:send( client.env.welcome .. "\r\n") if client.env.welcome ~= "" then
client:send( client.env.welcome .. "\r\n")
end
client:switch_status(host.status.read) client:switch_status(host.status.read)
end end
-- Print prompt when switching a client's status to `read' -- Print prompt when switching a client's status to `read'
......
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