From 1bc4106afbc46e7ce4e73f38d5d04181528b6d74 Mon Sep 17 00:00:00 2001 From: Gordon Shumway <39967334+oddluck@users.noreply.github.com> Date: Sat, 20 Apr 2019 22:52:11 -0400 Subject: [PATCH] Update plugin.py --- ASCII/plugin.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ASCII/plugin.py b/ASCII/plugin.py index ea130fa..e79758d 100644 --- a/ASCII/plugin.py +++ b/ASCII/plugin.py @@ -744,10 +744,8 @@ class ASCII(callbacks.Plugin): paste = "" 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('\x0F '): - line = line[:-3] + if line.endswith('\x0F \x03'): + line = line[:-4] if self.registryValue('pasteEnable', msg.args[0]): paste += line + "\n" if not line.strip():