From 3ad1a7c00fed3f4c11cb7d1c67c0f321cc68fc7c Mon Sep 17 00:00:00 2001 From: Gordon Shumway <39967334+oddluck@users.noreply.github.com> Date: Sat, 11 May 2019 18:47:34 -0400 Subject: [PATCH] remove scroll site limitations --- ASCII/plugin.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ASCII/plugin.py b/ASCII/plugin.py index a8c0875..d8fce8a 100644 --- a/ASCII/plugin.py +++ b/ASCII/plugin.py @@ -477,13 +477,11 @@ class ASCII(callbacks.Plugin): if "" in file[:10]: irc.reply("Error: ansi2irc requires a text file as input.", private=False, notice=False) return - elif url.endswith(".txt") or url.startswith("https://pastebin.com/raw/") or url.startswith("https://paste.ee/r/"): + else: for line in file: if line.strip() and not self.stopped[msg.args[0]]: time.sleep(delay) irc.reply(line, prefixNick = False, noLengthCheck=True, private=False, notice=False) - else: - irc.reply("Unexpected file type or link format", private=False, notice=False) scroll = wrap(scroll, [getopts({'delay':'float'}), ('text')]) def a2m(self, irc, msg, args, optlist, url):