forked from MarseyWorld/MarseyWorld
disallow chudding and banning ppl for negative days
parent
834de4bcf0
commit
7a529e70f8
|
@ -1018,6 +1018,9 @@ def ban_user(id, v):
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
if days < 0:
|
||||||
|
abort(400, "You can't bans people for negative days!")
|
||||||
|
|
||||||
reason = request.values.get("reason", "").strip()[:256]
|
reason = request.values.get("reason", "").strip()[:256]
|
||||||
|
|
||||||
if not reason:
|
if not reason:
|
||||||
|
@ -1099,6 +1102,9 @@ def agendaposter(id, v):
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
if days < 0:
|
||||||
|
abort(400, "You can't chud people for negative days!")
|
||||||
|
|
||||||
reason = request.values.get("reason", "").strip()
|
reason = request.values.get("reason", "").strip()
|
||||||
|
|
||||||
reason = filter_emojis_only(reason)
|
reason = filter_emojis_only(reason)
|
||||||
|
|
Loading…
Reference in New Issue