mudgangster

Log | Files | Refs

commit 2b19f3e4fa8fd95db45e876cbcdb6c6aaac7820d
parent 961702cb53bf6185622cffcb8534f3bf398e06c7
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sun, 28 Oct 2012 12:37:36 +0000

Fixed input not being displayed

Diffstat:
action.lua | 2+-
handlers.lua | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/action.lua b/action.lua @@ -28,7 +28,7 @@ local function genericActions( actions ) local command = callback callback = function() - mud.input( command, false ) + mud.input( command, true ) end end diff --git a/handlers.lua b/handlers.lua @@ -196,7 +196,7 @@ local function handleData( data ) end end -local function handleCommand( input, display ) +local function handleCommand( input, hide ) if not alias.doAlias( input ) then if not mud.connected then mud.print( "\n#s> You're not connected..." ) @@ -204,7 +204,7 @@ local function handleCommand( input, display ) return end - if display and input ~= "" then + if not hide and input ~= "" then local toShow = ( showInput and input or ( "*" ):rep( input:len() ) ) .. "\n" if receiving then