scroll: better line splitting

This commit is contained in:
Gordon Shumway 2019-08-02 14:28:35 -04:00 committed by GitHub
parent c8880d86f4
commit 82ee3f6e1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1256,8 +1256,8 @@ class ASCII(callbacks.Plugin):
else:
irc.reply("Invalid file type.", private=False, notice=False)
return
file = file.content.decode()
for line in file.splitlines():
file = file.content.decode().replace('\r\n','\n')
for line in file.split('\n'):
if line.strip() and not self.stopped[msg.args[0]]:
time.sleep(delay)
irc.reply(line, prefixNick = False, noLengthCheck=True, private=False, notice=False, to=channel)