From 9afbbba950ebfc5c3be5596ac9372cc491c36e0d Mon Sep 17 00:00:00 2001 From: nex Date: Wed, 29 Nov 2023 15:34:33 +0000 Subject: [PATCH] Fix model_is_allowed --- cogs/other.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cogs/other.py b/cogs/other.py index 1f3a38b..612aaba 100644 --- a/cogs/other.py +++ b/cogs/other.py @@ -1928,7 +1928,7 @@ class OtherCog(commands.Cog): if _srv["owner"] == ctx.user.id: return True for pat in _srv.get("allow", ['*']): - if not fnmatch.fnmatch(model_name.casefold(), pat.casefold()): + if not fnmatch.fnmatch(model_name.lower(), pat.lower()): print( "Server %r does not support %r (only %r.)" % ( _srv['name'], @@ -1936,7 +1936,10 @@ class OtherCog(commands.Cog): ', '.join(_srv['allow']) ) ) - return False + else: + break + else: + return False return True class ServerSelector(discord.ui.View):