strip all font before rainbowifying text

This commit is contained in:
jesopo 2020-01-22 16:32:38 +00:00
parent e7a1b157de
commit ef3bdbf9fc

View file

@ -32,6 +32,7 @@ class Module(ModuleManager.BaseModule):
args = event["target"].buffer.get() args = event["target"].buffer.get()
if not args: if not args:
raise utils.EventError("No line found to rainbowify") raise utils.EventError("No line found to rainbowify")
args = utils.irc.strip_font(args)
offset = random.randint(0, len(COLORS)) offset = random.randint(0, len(COLORS))
out = "" out = ""