From f6c8126f8cfdb1fd5adb0b87f77767a8ae1a2c82 Mon Sep 17 00:00:00 2001 From: Gordon Shumway <39967334+oddluck@users.noreply.github.com> Date: Sat, 20 Apr 2019 22:35:00 -0400 Subject: [PATCH] Update plugin.py --- ASCII/plugin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ASCII/plugin.py b/ASCII/plugin.py index 0e0f332..ea130fa 100644 --- a/ASCII/plugin.py +++ b/ASCII/plugin.py @@ -742,12 +742,12 @@ class ASCII(callbacks.Plugin): irc.reply("Error. Have you installed tdfiglet? https://github.com/tat3r/tdfiglet", private=False, notice=False) return paste = "" - output = output.decode().replace('\r\r\n', '\r\n') + output = output.decode().replace('\r\r\n', '\r\n').replace('\x03\x03', '\x0F') for line in output.splitlines(): if line.endswith('\x03'): line = line[:-1] - if line.endswith('\x03\x03 '): - line = line[:-4] + if line.endswith('\x0F '): + line = line[:-3] if self.registryValue('pasteEnable', msg.args[0]): paste += line + "\n" if not line.strip():