Update plugin.py

This commit is contained in:
Gordon Shumway 2019-04-23 22:50:17 -04:00 committed by GitHub
parent 671f1f000d
commit d6ad33ebd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -796,8 +796,12 @@ class ASCII(callbacks.Plugin):
output = output.replace('\x0F\x03', '\x03') output = output.replace('\x0F\x03', '\x03')
paste = "" paste = ""
for line in output.splitlines(): for line in output.splitlines():
if line.strip() and not line.startswith("Follow"):
line = line.strip('\x0F') line = line.strip('\x0F')
if not line.strip():
paste += line + "\n"
#time.sleep(delay)
irc.reply('\xa0', prefixNick = False, noLengthCheck=True, private=False, notice=False)
elif not line.startswith("Follow"):
paste += line + "\n" paste += line + "\n"
#time.sleep(delay) #time.sleep(delay)
irc.reply(line, prefixNick = False, noLengthCheck=True, private=False, notice=False) irc.reply(line, prefixNick = False, noLengthCheck=True, private=False, notice=False)