forked from rDrama/rDrama
fix 500 error
parent
af0deb7f87
commit
e1088a3df4
|
@ -176,7 +176,7 @@ def NOTIFY_USERS(text, v, oldtext=None, ghost=False, log_cost=None):
|
||||||
notify_users.update(members)
|
notify_users.update(members)
|
||||||
|
|
||||||
if ghost or v.id not in member_ids:
|
if ghost or v.id not in member_ids:
|
||||||
if group.name == 'verifiedrich':
|
if group and group.name == 'verifiedrich':
|
||||||
abort(403, f"Only !verifiedrich members can mention it!")
|
abort(403, f"Only !verifiedrich members can mention it!")
|
||||||
cost += len(members) * 10
|
cost += len(members) * 10
|
||||||
if cost > v.coins:
|
if cost > v.coins:
|
||||||
|
|
Loading…
Reference in New Issue