From 28f87b9f0500cef99095278ffd9c185b59ef18fa Mon Sep 17 00:00:00 2001 From: Gordon Shumway <39967334+oddluck@users.noreply.github.com> Date: Mon, 23 Sep 2019 16:55:36 -0400 Subject: [PATCH] Update plugin.py --- ASCII/plugin.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ASCII/plugin.py b/ASCII/plugin.py index cf90637..ff8489f 100644 --- a/ASCII/plugin.py +++ b/ASCII/plugin.py @@ -673,8 +673,7 @@ class ASCII(callbacks.Plugin): return '' def ansi2irc(self, output): - output = output.replace('\x1b(B\x1b[m', '') - output = output.replace('\x1b(B\x1b[m', '') + output = output.replace('\x1b(B\x1b[m', '\x1b[0m') output = output.replace('\x1b\x1b', '\x1b') output = re.sub(r'\x1B\[[0-?]*[ -/]*[@-~]', lambda m: self.process_ansi(m.group(0)), output) output = re.sub('\x0399,(\d\d)\x03(\d\d)', '\x03\g<2>,\g<1>', output)