summaryrefslogtreecommitdiff
path: root/bot
diff options
context:
space:
mode:
Diffstat (limited to 'bot')
-rw-r--r--bot/src/commands/lua.cpp3
1 files changed, 3 insertions, 0 deletions
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"};