]> git.sesse.net Git - vlc/commitdiff
Don't print welcome message if it's empty.
authorAntoine Cellerier <dionoea@videolan.org>
Sun, 27 Dec 2009 20:14:17 +0000 (21:14 +0100)
committerAntoine Cellerier <dionoea@videolan.org>
Sun, 27 Dec 2009 20:31:27 +0000 (21:31 +0100)
share/lua/intf/rc.lua

index 2fd30eec3de2e29b0f4bc1c3d175fec45ecac056..6acbfedf1fec8524312fb230f0999363eaa61b94 100644 (file)
@@ -562,7 +562,7 @@ do
         end
     end
     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.."."
     end
 end
@@ -623,7 +623,9 @@ h = host.host()
 -- No auth
 h.status_callbacks[host.status.password] = function(client)
     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)
 end
 -- Print prompt when switching a client's status to `read'