From 01cd0a786dae0204f60614178db4acecdde17329 Mon Sep 17 00:00:00 2001 From: 13xforever Date: Tue, 12 Feb 2019 20:20:17 +0500 Subject: [PATCH] make it more fool-proof --- CompatBot/Commands/EventsBaseCommand.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CompatBot/Commands/EventsBaseCommand.cs b/CompatBot/Commands/EventsBaseCommand.cs index 47697455..1c97c023 100644 --- a/CompatBot/Commands/EventsBaseCommand.cs +++ b/CompatBot/Commands/EventsBaseCommand.cs @@ -386,6 +386,9 @@ namespace CompatBot.Commands if (emoji.Emoji == previousPage) goto step4; + + if (emoji.Emoji == firstPage) + goto step1; } else if (!string.IsNullOrEmpty(txt?.Message.Content)) { @@ -415,7 +418,7 @@ namespace CompatBot.Commands return (false, msg); } - return (true, msg); + return (false, msg); } private static async Task FuzzyMatchEventName(BotDb db, string eventName)