client-cqchat.lua: Actually exit when Ctrl-D is entered
This commit is contained in:
@@ -125,7 +125,7 @@ local function main(tty, client, username, password)
|
|||||||
if ch then
|
if ch then
|
||||||
if ch == "\4" and #line == 0 then
|
if ch == "\4" and #line == 0 then
|
||||||
print("\r[K")
|
print("\r[K")
|
||||||
cq:cancel()
|
running = false
|
||||||
return
|
return
|
||||||
elseif ch == "\127" then
|
elseif ch == "\127" then
|
||||||
line = line:sub(1, -2)
|
line = line:sub(1, -2)
|
||||||
|
|||||||
Reference in New Issue
Block a user