From 84bff9cb447890835100383adcab24befcb7b4bb Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 27 Dec 2022 06:32:53 +0200 Subject: [PATCH] fix --- files/routes/admin.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index 8f4abcbac0..75386b72d0 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -1020,11 +1020,12 @@ def ban_user(user_id, v): pass reason = request.values.get("reason").strip()[:256] - reason = filter_emojis_only(reason) if reason.startswith("/") and '\\' not in reason: reason = f'{reason}' + reason = filter_emojis_only(reason) + user.ban(admin=v, reason=reason, days=days) if request.values.get("alts"): @@ -1091,6 +1092,8 @@ def agendaposter(user_id, v): if reason and reason.startswith("/") and '\\' not in reason: reason = f'{reason}' + reason = filter_emojis_only(reason) + duration = "permanently" if days: user.agendaposter = int(time.time()) + (days * 86400)