From 05eea3b585566475460937bc947ba88a1c123fe9 Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 14 Nov 2018 14:44:01 +0000 Subject: [PATCH] Strip font from the last message in a channel before trying to translate it --- modules/translate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/translate.py b/modules/translate.py index 4173191b..8164c8ec 100644 --- a/modules/translate.py +++ b/modules/translate.py @@ -18,7 +18,7 @@ class Module(ModuleManager.BaseModule): if not phrase: phrase = event["target"].buffer.get() if phrase: - phrase = phrase.message + phrase = utils.irc.strip_font(phrase.message) if not phrase: raise utils.EventError("No phrase provided.") source_language = "auto"