wttr: always generate paste link

This commit is contained in:
Gordon Shumway 2019-12-06 00:59:08 -05:00 committed by GitHub
parent e3383b6e9e
commit ce548e233a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 8 deletions

View File

@ -1488,14 +1488,11 @@ class ASCII(callbacks.Plugin):
self.stopped[msg.args[0]] = False
for line in output.splitlines():
line = line.strip('\x0F')
if not line.strip() and not self.stopped[msg.args[0]]:
if self.registryValue('pasteEnable', msg.args[0]):
paste += line + "\n"
time.sleep(delay)
irc.reply('\xa0', prefixNick = False, noLengthCheck=True, private=False, notice=False, to=channel)
elif line.strip() and not self.stopped[msg.args[0]] and not line.startswith("Follow"):
if self.registryValue('pasteEnable', msg.args[0]):
paste += line + "\n"
if not line.strip():
line = '\xa0'
if self.registryValue('pasteEnable', msg.args[0]) and not line.startswith("Follow"):
paste += line + "\n"
if line.strip() and not self.stopped[msg.args[0]] and not line.startswith("Follow"):
time.sleep(delay)
irc.reply(line, prefixNick = False, noLengthCheck=True, private=False, notice=False, to=channel)
if self.registryValue('pasteEnable', msg.args[0]):