From 538e91af5022a828c20409cfe9cefda371f0901d Mon Sep 17 00:00:00 2001 From: Gordon Shumway <39967334+oddluck@users.noreply.github.com> Date: Wed, 15 May 2019 16:52:37 -0400 Subject: [PATCH] Update plugin.py --- ASCII/plugin.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/ASCII/plugin.py b/ASCII/plugin.py index 9b7b7d5..a626b6c 100644 --- a/ASCII/plugin.py +++ b/ASCII/plugin.py @@ -886,13 +886,14 @@ class ASCII(callbacks.Plugin): line = line.strip('\x0F') line = line.replace(' ⚡', '☇ ') line = line.replace('⚡', ' ☇ ') - if self.registryValue('pasteEnable', msg.args[0]): if not line.strip() and not self.stopped[msg.args[0]]: - paste += line + "\n" + if self.registryValue('pasteEnable', msg.args[0]): + paste += line + "\n" time.sleep(delay) irc.reply('\xa0', prefixNick = False, noLengthCheck=True, private=False, notice=False) elif line.strip() and not self.stopped[msg.args[0]] and not line.startswith("Follow"): - paste += line + "\n" + if self.registryValue('pasteEnable', msg.args[0]): + paste += line + "\n" time.sleep(delay) irc.reply(line, prefixNick = False, noLengthCheck=True, private=False, notice=False) if self.registryValue('pasteEnable', msg.args[0]): @@ -964,13 +965,14 @@ class ASCII(callbacks.Plugin): line = re.sub('┘$', '────────┘', line) line = re.sub('\(1H\)\x0F\s+│$', '(1H)\x0F │', line) line = re.sub('^│\x0F', '│', line) - if self.registryValue('pasteEnable', msg.args[0]): if not line.strip() and not self.stopped[msg.args[0]]: - paste += line + "\n" + if self.registryValue('pasteEnable', msg.args[0]): + paste += line + "\n" time.sleep(delay) irc.reply('\xa0', prefixNick = False, noLengthCheck=True, private=False, notice=False) elif line.strip() and not self.stopped[msg.args[0]] and "Follow @igor_chubin" not in line: - paste += line + "\n" + if self.registryValue('pasteEnable', msg.args[0]): + paste += line + "\n" time.sleep(delay) irc.reply(line, prefixNick = False, noLengthCheck=True, private=False, notice=False) if self.registryValue('pasteEnable', msg.args[0]):