dont give me !jannies notifs on WPD

master
Aevann 2024-07-22 18:57:59 +03:00
parent 92848bbe5f
commit 1d39d6bd3f
1 changed files with 2 additions and 0 deletions

View File

@ -215,6 +215,8 @@ def NOTIFY_USERS(text, v, oldtext=None, ghost=False, obj=None, followers_ping=Tr
elif i.group(1) == 'jannies': elif i.group(1) == 'jannies':
group = None group = None
member_ids = set(x[0] for x in g.db.query(User.id).filter(User.admin_level > 0)) member_ids = set(x[0] for x in g.db.query(User.id).filter(User.admin_level > 0))
if SITE == 'watchpeopledie.tv':
member_ids -= AEVANN_ID
elif i.group(1) == 'holejannies': elif i.group(1) == 'holejannies':
if not get_obj_hole(obj): if not get_obj_hole(obj):
abort(403, "!holejannies can only be used inside holes!") abort(403, "!holejannies can only be used inside holes!")