Update plugin.py

This commit is contained in:
Gordon Shumway 2019-05-15 16:52:37 -04:00 committed by GitHub
parent 30a067bcb4
commit 538e91af50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 6 deletions

View File

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