From be443caccf2140005586f9e6daf2263d54a60ff5 Mon Sep 17 00:00:00 2001 From: spiral Date: Sun, 7 Nov 2021 12:24:06 -0500 Subject: [PATCH] fix: off-by-one error in switching list pages --- PluralKit.Bot/Utils/ContextUtils.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PluralKit.Bot/Utils/ContextUtils.cs b/PluralKit.Bot/Utils/ContextUtils.cs index d51bb649..8e1c8615 100644 --- a/PluralKit.Bot/Utils/ContextUtils.cs +++ b/PluralKit.Bot/Utils/ContextUtils.cs @@ -146,7 +146,7 @@ namespace PluralKit.Bot await ctx.Reply($"{Emojis.Error} Operation canceled (invalid number)."); continue; } - if (repliedNum >= pageCount) + if (repliedNum > pageCount) { await ctx.Reply($"{Emojis.Error} That page number is too high (page count is {pageCount})."); continue;