diff --git a/IRCArt/plugin.py b/IRCArt/plugin.py index b583467..0957b40 100644 --- a/IRCArt/plugin.py +++ b/IRCArt/plugin.py @@ -691,7 +691,7 @@ class IRCArt(callbacks.Plugin): ua = UserAgent() header = {'User-Agent':str(ua.random)} r = requests.head(url, headers=header) - if "text/plain" in r.headers["content-type"]: + if "text/plain" in r.headers["content-type"] or url.startswith('https://paste.ee/r/'): file = requests.get(url, headers=header) else: irc.reply("Invalid file type.", private=False, notice=False)