forked from rDrama/rDrama
1
0
Fork 0
Aevann 2024-02-12 19:41:49 +02:00
parent cc25d9cbf5
commit 745ab804be
1 changed files with 3 additions and 0 deletions

View File

@ -175,6 +175,9 @@ def NOTIFY_USERS(text, v, oldtext=None, ghost=False, obj=None, followers_ping=Tr
if oldtext and re.search(f'(?<![:/\w])!{i.group(1)}($|\s)', oldtext):
continue
if re.search(f'^>.*?(?<![:/\w])!{i.group(1)}', text):
continue
if i.group(1) == 'focusgroup' and not v.admin_level:
abort(403, f"Only admins can mention !focusgroup")