Update plugin.py

This commit is contained in:
Gordon Shumway 2019-04-20 22:52:11 -04:00 committed by GitHub
parent f6c8126f8c
commit 1bc4106afb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -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():