per-server hosts

This commit is contained in:
Firepup Sixfifty 2023-11-14 22:44:38 -06:00
parent 0b05317050
commit 5acd72cb83
Signed by: Firepup650
GPG key ID: 7C92E2ABBBFAB9BA

View file

@ -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"]