From 45cd83fb698dee1668d67dc57345fec0553056a9 Mon Sep 17 00:00:00 2001 From: appelemac Date: Thu, 5 May 2016 11:50:15 +0200 Subject: [PATCH] Limit amount of Currency displayed when using $$$ --- NadekoBot/Modules/Gambling/GamblingModule.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/NadekoBot/Modules/Gambling/GamblingModule.cs b/NadekoBot/Modules/Gambling/GamblingModule.cs index ae8c1cf0..7fd8c6dd 100644 --- a/NadekoBot/Modules/Gambling/GamblingModule.cs +++ b/NadekoBot/Modules/Gambling/GamblingModule.cs @@ -123,10 +123,17 @@ namespace NadekoBot.Modules.Gambling { var pts = GetUserFlowers(e.User.Id); var str = $"`You have {pts} {NadekoBot.Config.CurrencyName}s".SnPl((int)pts) + "`\n"; - for (var i = 0; i < pts; i++) + //Maximum displayed will be ~40 + int i; + for (i = 0;i < pts && i< 40; i++) { str += NadekoBot.Config.CurrencySign; } + if (i