diff options
Diffstat (limited to 'bot/src')
| -rw-r--r-- | bot/src/commands/lua.cpp | 3 |
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"}; |
