From 05a25b1f0399ee2f70ca642856b3df952bae6bfc Mon Sep 17 00:00:00 2001 From: Red-GitHubBot <88117545+Red-GitHubBot@users.noreply.github.com> Date: Wed, 8 Sep 2021 20:13:24 +0200 Subject: [PATCH] [3.4] [Warnings] Allow for 0 point warnings (#5178) (#5251) (cherry picked from commit ad6b8662b205e11b245bc3e8b4778dc526330621) Co-authored-by: Just-Jojo <62262765+Just-Jojo@users.noreply.github.com> Co-authored-by: Just-Jojo <62262765+Just-Jojo@users.noreply.github.com> --- 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`