mudgangster

Log | Files | Refs

commit 36dca2a4d1ae37768409ef355b323dafd4386488
parent f8744a29e57d467583fdd0512ca8fd4cd3069a79
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Wed,  5 Sep 2018 23:51:19 +0300

Oopses

Diffstat:
src/lua/handlers.lua | 1-
src/lua/mud.lua | 4+++-
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/lua/handlers.lua b/src/lua/handlers.lua @@ -254,7 +254,6 @@ local function handleCommand( input, hide ) end end - print( mud.send ) mud.send( input .. "\n" ) mud.drawMain() end diff --git a/src/lua/mud.lua b/src/lua/mud.lua @@ -40,7 +40,7 @@ function mud.connect( address, port ) if data then DataHandler( data ) else - mud.kill() + mud.disconnect() end end ) @@ -49,6 +49,8 @@ function mud.connect( address, port ) return end + mud_socket = sock + LastAddress = address LastPort = port