Skip to content

Commit

Permalink
🐛 3.6.6: Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
AirportR committed Jan 14, 2024
1 parent 4878999 commit a9c7021
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion botmodule/cfilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ async def func(_, __, message: Message) -> bool:
string = str(message.text)
arg = string.strip().split(' ')
arg = [x for x in arg if x != '']
if arg[0].endswith("url") or 'invite' in arg[0]:
cmd = arg[0].split('@')[0]
if cmd.endswith("url") or 'invite' in arg[0]:
return True
if check.check_sub_name(arg[1]):
return True
Expand Down

0 comments on commit a9c7021

Please sign in to comment.