From 2a1f45819de5f459c363c42a0efcfdac886084b0 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Thu, 16 Sep 2021 18:59:03 +0200 Subject: [PATCH] .waifugift pagination fixed - maximum number of pages properly scales with the number of items --- CHANGELOG.md | 2 ++ src/NadekoBot/Modules/Gambling/WaifuClaimCommands.cs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 350dc924d..2a7257c93 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ Experimental changelog. Mostly based on [keepachangelog](https://keepachangelog. - Timer should no longer increase on some repeaters - Repeaters should no longer have periods when they're missing from the list + + ## [3.0.3] - 15.09.2021 ### Added diff --git a/src/NadekoBot/Modules/Gambling/WaifuClaimCommands.cs b/src/NadekoBot/Modules/Gambling/WaifuClaimCommands.cs index 28653e987..457772a74 100644 --- a/src/NadekoBot/Modules/Gambling/WaifuClaimCommands.cs +++ b/src/NadekoBot/Modules/Gambling/WaifuClaimCommands.cs @@ -306,7 +306,7 @@ namespace NadekoBot.Modules.Gambling [Priority(1)] public async Task WaifuGift(int page = 1) { - if (--page < 0 || page > 3) + if (--page < 0 || page > (_config.Waifu.Items.Count - 1) / 9) return; var waifuItems = _service.GetWaifuItems();