fix: off-by-one error in switching list pages

This commit is contained in:
spiral 2021-11-07 12:24:06 -05:00
parent d19f6456a7
commit be443caccf
No known key found for this signature in database
GPG Key ID: A6059F0CA0E1BD31

View File

@ -146,7 +146,7 @@ namespace PluralKit.Bot
await ctx.Reply($"{Emojis.Error} Operation canceled (invalid number)."); await ctx.Reply($"{Emojis.Error} Operation canceled (invalid number).");
continue; continue;
} }
if (repliedNum >= pageCount) if (repliedNum > pageCount)
{ {
await ctx.Reply($"{Emojis.Error} That page number is too high (page count is {pageCount})."); await ctx.Reply($"{Emojis.Error} That page number is too high (page count is {pageCount}).");
continue; continue;