diff --git a/player/lua/console.lua b/player/lua/console.lua index f26a7e2ec10dd..2de766919c18c 100644 --- a/player/lua/console.lua +++ b/player/lua/console.lua @@ -796,6 +796,8 @@ local function handle_enter() return end + line = line:match('^%s*(.-)%s*$') + if line == '' and input_caller == nil then return end