Fail safely if not in secure.http_mods or trusted_mods
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user