allow .asc files

This commit is contained in:
Gordon Shumway 2019-04-16 21:36:24 -04:00 committed by GitHub
parent b4adb19c86
commit 529088cbf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -553,7 +553,7 @@ class ASCII(callbacks.Plugin):
opts += '-w {0} '.format(w)
else:
opts += '-w 80 '
if url.lower().endswith(".ans"):
if url.lower().endswith(".ans") or url.lower().endswith(".asc"):
file = requests.get(url)
if "<!DOCTYPE html>" in file.text:
irc.reply("Error: ansi2irc requires a text file as input.")