mudgangster

Tiny, scriptable MUD client
Log | Files | Refs

commit c26122dfa125895f536bc0fee1741f5431682c7c
parent c2aaa393263d94a09269c8c42edfa40f62dbf2c7
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Tue,  2 Apr 2019 16:10:49 +0300

Fix crash on unrecognised escape

Diffstat:
src/lua/handlers.lua | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lua/handlers.lua b/src/lua/handlers.lua @@ -197,7 +197,7 @@ local function handleData( data ) end for opt in opts:gmatch( "([^;]+)" ) do - if Escapes[ escape ][ opt ] then + if Escapes[ escape ] and Escapes[ escape ][ opt ] then Escapes[ escape ][ opt ]() end end