Strip font from the last message in a channel before trying to translate it

This commit is contained in:
jesopo 2018-11-14 14:44:01 +00:00
parent ed838193aa
commit 05eea3b585

View file

@ -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"