fix thx to kong

This commit is contained in:
Kwoth 2016-12-10 23:34:19 +01:00
parent d88aa3d4c1
commit f32144bd28

View File

@ -94,7 +94,7 @@ namespace NadekoBot.Modules.Searches
text = text?.Trim(); text = text?.Trim();
if (string.IsNullOrWhiteSpace(text)) if (string.IsNullOrWhiteSpace(text))
throw new ArgumentException(); 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 public enum AutoDeleteAutoTranslate