N
This commit is contained in:
parent
79dbfc8edd
commit
bb3c2a3036
10 changed files with 48 additions and 151 deletions
|
@ -67,7 +67,11 @@ def NOTIFY_USERS(text, v):
|
|||
if id == 0: continue
|
||||
if word in text.lower() and id not in notify_users and v.id != id: notify_users.add(id)
|
||||
|
||||
captured = []
|
||||
for i in mention_regex.finditer(text):
|
||||
if i.group(0) in captured: continue
|
||||
captured.append(i.group(0))
|
||||
|
||||
user = get_user(i.group(2), graceful=True)
|
||||
if user and not v.any_block_exists(user): notify_users.add(user.id)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue