From 55f4e1b6eb348534aac26a9380682a8c2be1901e Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Fri, 5 Dec 2025 00:50:02 +0500 Subject: upd: return empty response on nil --- bot/src/commands/lua.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bot') diff --git a/bot/src/commands/lua.cpp b/bot/src/commands/lua.cpp index c37f146..1a11378 100644 --- a/bot/src/commands/lua.cpp +++ b/bot/src/commands/lua.cpp @@ -942,6 +942,9 @@ namespace bot::command::lua { } } return {o}; + } else if (res.get_type() == sol::type::nil || + res.get_type() == sol::type::lua_nil) { + return {}; } else { // should it be ResponseException? return {prefix + "Empty or unsupported response"}; -- cgit v1.2.3