From 82ee3f6e1e58b71e84e43da5d319d104b8b9ea1e Mon Sep 17 00:00:00 2001 From: Gordon Shumway <39967334+oddluck@users.noreply.github.com> Date: Fri, 2 Aug 2019 14:28:35 -0400 Subject: [PATCH] scroll: better line splitting --- ASCII/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ASCII/plugin.py b/ASCII/plugin.py index 0694377..d9c2f91 100644 --- a/ASCII/plugin.py +++ b/ASCII/plugin.py @@ -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)