From ad6b8662b205e11b245bc3e8b4778dc526330621 Mon Sep 17 00:00:00 2001 From: Just-Jojo <62262765+Just-Jojo@users.noreply.github.com> Date: Sat, 3 Jul 2021 19:52:59 -0400 Subject: [PATCH] [Warnings] Allow for 0 point warnings (#5178) --- redbot/cogs/warnings/warnings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/redbot/cogs/warnings/warnings.py b/redbot/cogs/warnings/warnings.py index ea1f488af..9c8df40ff 100644 --- a/redbot/cogs/warnings/warnings.py +++ b/redbot/cogs/warnings/warnings.py @@ -395,8 +395,8 @@ class Warnings(commands.Cog): if (reason_type := registered_reasons.get(reason.lower())) is None: msg = _("That is not a registered reason!") if custom_allowed: - if points <= 0: - return await ctx.send(_("You cannot apply 0 or less points.")) + if points < 0: + return await ctx.send(_("You cannot apply negative points.")) reason_type = {"description": reason, "points": points} else: # logic taken from `[p]permissions canrun`