reddit and imgur fixes

This commit is contained in:
Luke Rogers 2013-10-01 03:06:53 +13:00
parent 0abac29523
commit 9b92d73f3a
2 changed files with 5 additions and 2 deletions

View file

@ -74,4 +74,7 @@ def imgur(inp):
if not items:
return "No images found (use .imgur <subreddit> nsfw to show explicit content)"
return web.isgd("http://imgur.com/" + ','.join(items))
if show_nsfw:
return "{} \x02NSFW\x02".format(web.isgd("http://imgur.com/" + ','.join(items)))
else:
return web.isgd("http://imgur.com/" + ','.join(items))