forked from MarseyWorld/MarseyWorld
disallow creating !everyone
parent
5e3980011b
commit
e9a15cd0b8
|
@ -28,8 +28,9 @@ def create_group(v):
|
|||
if not valid_sub_regex.fullmatch(name):
|
||||
return redirect(f"/ping_groups?error=Name does not match the required format!")
|
||||
|
||||
group = g.db.get(Group, name)
|
||||
if not group:
|
||||
if name == 'everyone' or g.db.get(Group, name):
|
||||
return redirect(f"/ping_groups?error=This group already exists!")
|
||||
|
||||
if not v.charge_account('coins', GROUP_COST):
|
||||
return redirect(f"/ping_groups?error=You don't have enough coins!")
|
||||
|
||||
|
|
Loading…
Reference in New Issue