forked from rDrama/rDrama
fix this https://rdrama.net/h/meta/post/221315/required-reading-coomers-callout-post-glowies/5387213#context
parent
cc25d9cbf5
commit
745ab804be
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in New Issue