$lb can't take negative page numbers anymore xD

This commit is contained in:
Kwoth 2017-04-02 12:45:35 +02:00
parent dfdfab44f7
commit e3a1d17d8e

View File

@ -246,6 +246,9 @@ namespace NadekoBot.Modules.Gambling
[NadekoCommand, Usage, Description, Aliases] [NadekoCommand, Usage, Description, Aliases]
public async Task Leaderboard(int page = 1) public async Task Leaderboard(int page = 1)
{ {
if (page < 1)
return;
List<Currency> richest; List<Currency> richest;
using (var uow = DbHandler.UnitOfWork()) using (var uow = DbHandler.UnitOfWork())
{ {