$lb can't take negative page numbers anymore xD
This commit is contained in:
parent
dfdfab44f7
commit
e3a1d17d8e
@ -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())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user