fix(commands/tools/clear): check for ignore_ids

This commit is contained in:
Ryan 2025-01-08 14:25:58 -05:00
parent f00ac9c977
commit d6150a664f
Signed by: ErrorNoInternet
GPG Key ID: 2486BFB7B1E6A4A3

View File

@ -1,6 +1,7 @@
import re import re
import arguments import arguments
import commands import commands
import utils import utils
@ -81,7 +82,7 @@ async def clear(message):
regex = re.compile(r, re.IGNORECASE if args.case_insensitive else 0) regex = re.compile(r, re.IGNORECASE if args.case_insensitive else 0)
def check(m): def check(m):
if m.id in args.ignore_ids: if (ids := args.ignore_ids) and m.id in ids:
return False return False
c = [] c = []
if regex: if regex: