mirror of
https://github.com/oddluck/limnoria-plugins.git
synced 2025-04-26 04:51:09 -05:00
Update plugin.py
This commit is contained in:
parent
d66a75ecdf
commit
b99b8644c5
@ -1254,7 +1254,6 @@ class ASCII(callbacks.Plugin):
|
||||
ua = UserAgent()
|
||||
header = {'User-Agent':str(ua.random)}
|
||||
r = requests.head(url, headers=header)
|
||||
irc.reply(r.headers)
|
||||
try:
|
||||
if "text/plain" in r.headers["content-type"] or "application/octet-stream" in r.headers["content-type"] and int(r.headers["content-length"]) < 1000000:
|
||||
path = os.path.dirname(os.path.abspath(__file__))
|
||||
|
Loading…
x
Reference in New Issue
Block a user