Update root.py

pull/106/head
Who? 2025-02-23 13:39:09 +07:00 committed by GitHub
parent b984e5238e
commit 7427f440a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 1 deletions

View File

@ -314,7 +314,13 @@ class Web:
async def can_add(self, request: web.Request) -> web.Response:
if self.client_data and "LAVHOST" in os.environ:
return web.Response(status=403, body="Forbidden by host EULA")
return web.Response(status=403, body="Forbidden by lavhost EULA")
if "JAMHOST" in os.environ:
return web.Response(status=403, body="Forbidden by JamHost EULA")
if "HIKKAHOST" in os.environ:
return web.Response(status=403, body="Forbidden by HikkaHost EULA")
return web.Response(status=200, body="Yes")