[vlc-commits] luatelnet: end connections in the password state too

Pierre Ynard git at videolan.org
Wed Feb 2 00:56:32 CET 2011


vlc/vlc-1.1 | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Tue Feb  1 23:36:19 2011 +0100| [c4c723c7940314bd6686738f121034bc1ad5e07d] | committer: Pierre Ynard

luatelnet: end connections in the password state too

Kludge beurk beurk
(cherry picked from commit 26edb0ca8af568cbba61b0e1b3b3b6fffa680b8f)

Signed-off-by: Pierre Ynard <linkfanel at yahoo.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=c4c723c7940314bd6686738f121034bc1ad5e07d
---

 share/lua/intf/telnet.lua |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/share/lua/intf/telnet.lua b/share/lua/intf/telnet.lua
index c964bd2..5a0d315 100644
--- a/share/lua/intf/telnet.lua
+++ b/share/lua/intf/telnet.lua
@@ -213,6 +213,8 @@ while not vlc.misc.should_die() do
                     client:send( IAC..WONT..ECHO.."\r\nWelcome, Master\r\n" )
                     client.buffer = ""
                     client:switch_status( host.status.write )
+                elseif client.buffer == "quit" then
+                    client_command( client )
                 else
                     client:send( "\r\nWrong password\r\nPassword: " )
                     client.buffer = ""



More information about the vlc-commits mailing list