From 5acd72cb836e5f455249d2ecda7c926749784b79 Mon Sep 17 00:00:00 2001 From: Firepup Sixfifty Date: Tue, 14 Nov 2023 22:44:38 -0600 Subject: [PATCH] per-server hosts --- config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.py b/config.py index ce499bd..f6cf549 100644 --- a/config.py +++ b/config.py @@ -68,4 +68,4 @@ def mfind(message: str, find: list, usePrefix: bool = True) -> bool: return any(message[: len(match)] == match for match in find) def adminCheck(bot: bare.bot, name: str, host: Optional[str] = "nul") -> bool: - return name in servers[bot.server]["admins"] or host in admin_hosts or host in servers[bot.server]["hosts"] + return name.lower() in servers[bot.server]["admins"] or host in admin_hosts or host in servers[bot.server]["hosts"]