diff --git a/chat_mod/init.lua b/chat_mod/init.lua index ce8019f..e1a0821 100644 --- a/chat_mod/init.lua +++ b/chat_mod/init.lua @@ -14,4 +14,8 @@ function main(http_api) end local http_api = minetest.request_http_api() -main(http_api) +if http_api == nil then + minetest.log("error", "Chat Mod is not in secure.http_mods or secure.trusted_mods. Exiting.") +else + main(http_api) +end