From a00e2cb9bb746f2bac0a3312092a28a3c658254c Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 17 Apr 2024 23:16:48 +0200 Subject: [PATCH] fix this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/6275441#context --- files/helpers/alerts.py | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/files/helpers/alerts.py b/files/helpers/alerts.py index d954f937a..feec5b991 100644 --- a/files/helpers/alerts.py +++ b/files/helpers/alerts.py @@ -228,17 +228,18 @@ def NOTIFY_USERS(text, v, oldtext=None, ghost=False, obj=None, followers_ping=Tr notify_users.update(members) - realghost = ghost and i.group(1) != 'ghosts' - if (realghost or v.id not in member_ids) and i.group(1) != 'followers': - if group and group.name == 'verifiedrich': - abort(403, f"Only !verifiedrich members can mention it!") - cost += len(members) * 5 - cost_groups.append(i.group(1)) - if cost > v.coins + v.marseybux: - abort(403, f"You need {cost} currency to mention these ping groups!") + if charge: + realghost = ghost and i.group(1) != 'ghosts' + if (realghost or v.id not in member_ids) and i.group(1) != 'followers': + if group and group.name == 'verifiedrich': + abort(403, f"Only !verifiedrich members can mention it!") + cost += len(members) * 5 + cost_groups.append(i.group(1)) + if cost > v.coins + v.marseybux: + abort(403, f"You need {cost} currency to mention these ping groups!") - if i.group(1) in {'biofoids','neofoids','jannies'}: - coin_receivers.update(member_ids) + if i.group(1) in {'biofoids','neofoids','jannies'}: + coin_receivers.update(member_ids) if charge: if cost: