fix(commands/tools/clear): check for ignore_ids
This commit is contained in:
parent
f00ac9c977
commit
d6150a664f
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user