From 9f258d984ddf65743ffbe5f0e48b51eb5e5465f2 Mon Sep 17 00:00:00 2001 From: Who? <155328415+coddrago@users.noreply.github.com> Date: Sun, 23 Feb 2025 13:27:15 +0700 Subject: [PATCH] Update root.py --- hikka/web/root.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/hikka/web/root.py b/hikka/web/root.py index 58f9993..7322b1d 100644 --- a/hikka/web/root.py +++ b/hikka/web/root.py @@ -6,6 +6,12 @@ # You can redistribute it and/or modify it under the terms of the GNU AGPLv3 # 🔑 https://www.gnu.org/licenses/agpl-3.0.html +# Codrago 2024-2026 +# This file is a part of Heroku Userbot +# https://github.com/coddrago/Heroku +# You can redistribute it and/or modify it under the terms of the GNU AGPLv3 +# https://www.gnu.org/licenses/agpl-3.0.html + import asyncio import collections import functools @@ -241,7 +247,11 @@ class Web: async def init_qr_login(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 self.client_data and "JAMHOST" in os.environ: + return web.Response(status=403, body="Forbidden by JamHost EULA") + if self.client_data and "HIKKAHOST" in os.environ: + return web.Response(status=403, body="Forbidden by HikkaHost EULA") if not self._check_session(request): return web.Response(status=401)