From f32144bd28fd89d10eb02af7c8ebbc68491302ed Mon Sep 17 00:00:00 2001 From: Kwoth Date: Sat, 10 Dec 2016 23:34:19 +0100 Subject: [PATCH] fix thx to kong --- src/NadekoBot/Modules/Searches/Commands/Translator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NadekoBot/Modules/Searches/Commands/Translator.cs b/src/NadekoBot/Modules/Searches/Commands/Translator.cs index 943e152e..abadb26c 100644 --- a/src/NadekoBot/Modules/Searches/Commands/Translator.cs +++ b/src/NadekoBot/Modules/Searches/Commands/Translator.cs @@ -94,7 +94,7 @@ namespace NadekoBot.Modules.Searches text = text?.Trim(); if (string.IsNullOrWhiteSpace(text)) throw new ArgumentException(); - return await GoogleTranslator.Instance.Translate(text, from, to).ConfigureAwait(false); + return (await GoogleTranslator.Instance.Translate(text, from, to).ConfigureAwait(false)).SanitizeMentions(); } public enum AutoDeleteAutoTranslate