client-cqchat.lua: Actually exit when Ctrl-D is entered

This commit is contained in:
Adrian Perez de Castro
2016-07-09 01:01:31 +03:00
parent bb23740c1c
commit 0fa555f6a8

View File

@@ -125,7 +125,7 @@ local function main(tty, client, username, password)
if ch then
if ch == "\4" and #line == 0 then
print("\r")
cq:cancel()
running = false
return
elseif ch == "\127" then
line = line:sub(1, -2)