diff --git a/lovebird.lua b/lovebird.lua index fdd5f25..b27455e 100644 --- a/lovebird.lua +++ b/lovebird.lua @@ -37,6 +37,9 @@ if req.parsedbody.input then if lovebird.echoinput then lovebird.pushline({ type = 'input', str = str }) end + if str:find("^=") then + str = "print(" .. str:sub(2) .. ")" + end xpcall(function() assert(lovebird.loadstring(str, "input"))() end, lovebird.onerror) end