disallow non-jannies for pinging focusgroup

pull/221/head
Aevann 2023-12-25 01:52:17 +02:00
parent f5b1e789f5
commit a4e60308fe
1 changed files with 3 additions and 0 deletions

View File

@ -171,6 +171,9 @@ def NOTIFY_USERS(text, v, oldtext=None, ghost=False, obj=None, followers_ping=Tr
if oldtext and i.group(1) in oldtext:
continue
if i.group(1) == 'focusgroup' and not v.admin_level:
abort(403, f"Only admins can mention !focusgroup")
if i.group(1) == 'everyone':
cost = g.db.query(User).count() * 5
if cost > v.coins + v.marseybux: