From 1552d2c8925045c3f88b4e1e55ebddceafeffa80 Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Fri, 11 Aug 2017 14:02:48 +0200 Subject: [PATCH] Fixed extra space in %target%, closes #1483 --- src/NadekoBot/Modules/CustomReactions/Extensions/Extensions.cs | 2 +- src/NadekoBot/Modules/Games/Common/Connect4/Connect4.cs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/NadekoBot/Modules/CustomReactions/Extensions/Extensions.cs b/src/NadekoBot/Modules/CustomReactions/Extensions/Extensions.cs index 79591b7c..f24effb1 100644 --- a/src/NadekoBot/Modules/CustomReactions/Extensions/Extensions.cs +++ b/src/NadekoBot/Modules/CustomReactions/Extensions/Extensions.cs @@ -74,7 +74,7 @@ namespace NadekoBot.Modules.CustomReactions.Extensions var rep = new ReplacementBuilder() .WithDefault(ctx.Author, ctx.Channel, (ctx.Channel as ITextChannel)?.Guild, client) - .WithOverride("%target%", () => ctx.Content.Substring(substringIndex)) + .WithOverride("%target%", () => ctx.Content.Substring(substringIndex).Trim()) .Build(); str = rep.Replace(str); diff --git a/src/NadekoBot/Modules/Games/Common/Connect4/Connect4.cs b/src/NadekoBot/Modules/Games/Common/Connect4/Connect4.cs index 0ba9acb8..ae475e5e 100644 --- a/src/NadekoBot/Modules/Games/Common/Connect4/Connect4.cs +++ b/src/NadekoBot/Modules/Games/Common/Connect4/Connect4.cs @@ -7,7 +7,6 @@ using System.Threading.Tasks; namespace NadekoBot.Modules.Games.Common.Connect4 { - //todo: diagonal checking public class Connect4Game : IDisposable { public enum Phase