From 75eb795c151bb0bb4e4865457d05a973001b84b4 Mon Sep 17 00:00:00 2001 From: oddluck <39967334+oddluck@users.noreply.github.com> Date: Mon, 20 Jul 2020 05:56:07 +0000 Subject: [PATCH] TextArt: Cleanup wttr/rate output. --- TextArt/plugin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/TextArt/plugin.py b/TextArt/plugin.py index 96bc128..b58780e 100644 --- a/TextArt/plugin.py +++ b/TextArt/plugin.py @@ -1603,6 +1603,7 @@ class TextArt(callbacks.Plugin): output = self.ansi2irc(output) output = re.sub("⚡", "☇ ", output) output = re.sub("‘‘", "‘ ", output) + output = re.sub("\n\nFollow.*$", "", output) self.stopped[channel] = False output = output.splitlines() output = [line.strip("\x0F") for line in output] @@ -1662,6 +1663,7 @@ class TextArt(callbacks.Plugin): output = file.content.decode() output = self.ansi2irc(output) output = output.replace("\x1b(B", "") + output = re.sub(r"\n\x0307NEW FEATURE:.*\n.*", "", output).strip() output = output.splitlines() output = [line.strip("\x0F") for line in output] self.stopped[channel] = False