Update plugin.py

This commit is contained in:
Gordon Shumway 2019-04-23 21:16:14 -04:00 committed by GitHub
parent fb5c73f26b
commit 189769c1a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -794,8 +794,8 @@ class ASCII(callbacks.Plugin):
output = output.replace('[1m', '')
output = re.sub('(\x9B|\x1B\[)[0-?]*[ -\/]*[@-~]', '', output)
paste = ""
for line in output.splitlines()[:-1]:
if line.strip():
for line in output.splitlines():
if line.strip() and not line.startswith("Follow"):
paste += line + "\n"
#time.sleep(delay)
irc.reply(line, prefixNick = False, noLengthCheck=True, private=False, notice=False)