closes #1012, Fixed acrophobia not working if you type something other than the sentence
This commit is contained in:
		@@ -191,9 +191,6 @@ namespace NadekoBot.Modules.Games
 | 
				
			|||||||
                            try { await channel.EmbedAsync(GetEmbed()).ConfigureAwait(false); }
 | 
					                            try { await channel.EmbedAsync(GetEmbed()).ConfigureAwait(false); }
 | 
				
			||||||
                            catch { }
 | 
					                            catch { }
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
                        //user didn't input something already
 | 
					 | 
				
			||||||
                        if (!usersWhoSubmitted.Add(guildUser.Id))
 | 
					 | 
				
			||||||
                            return;
 | 
					 | 
				
			||||||
                        var inputWords = input.Split(' '); //get all words
 | 
					                        var inputWords = input.Split(' '); //get all words
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                        if (inputWords.Length != startingLetters.Length) // number of words must be the same as the number of the starting letters
 | 
					                        if (inputWords.Length != startingLetters.Length) // number of words must be the same as the number of the starting letters
 | 
				
			||||||
@@ -207,9 +204,15 @@ namespace NadekoBot.Modules.Games
 | 
				
			|||||||
                                return;
 | 
					                                return;
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                        if (!usersWhoSubmitted.Add(guildUser.Id))
 | 
				
			||||||
 | 
					                            return;
 | 
				
			||||||
                        //try adding it to the list of answers
 | 
					                        //try adding it to the list of answers
 | 
				
			||||||
                        if (!submissions.TryAdd(input, guildUser))
 | 
					                        if (!submissions.TryAdd(input, guildUser))
 | 
				
			||||||
 | 
					                        {
 | 
				
			||||||
 | 
					                            usersWhoSubmitted.TryRemove(guildUser.Id);
 | 
				
			||||||
                            return;
 | 
					                            return;
 | 
				
			||||||
 | 
					                        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                        // all good. valid input. answer recorded
 | 
					                        // all good. valid input. answer recorded
 | 
				
			||||||
                        await channel.SendConfirmAsync("Acrophobia", $"{guildUser.Mention} submitted their sentence. ({submissions.Count} total)");
 | 
					                        await channel.SendConfirmAsync("Acrophobia", $"{guildUser.Mention} submitted their sentence. ({submissions.Count} total)");
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user