Merge pull request #272 from benharri-forks/fix-shorturl

fix shorturl.py
This commit is contained in:
jesopo 2020-07-21 07:51:26 +01:00 committed by GitHub
commit c8ff426128
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,9 +48,11 @@ class Module(ModuleManager.BaseModule):
shortener_name = None shortener_name = None
if context: if context:
shortener_name = context.get_setting("url-shortener", shortener_name = context.get_setting("url-shortener",
server.get_setting("url-shortener", "bitly")) server.get_setting("url-shortener",
self.bot.get_setting("url-shortener", "bitly")))
else: else:
shortener_name = server.get_setting("url-shortener", "bitly") shortener_name = server.get_setting("url-shortener",
self.bot.get_setting("url-shortener", "bitly"))
if shortener_name == None: if shortener_name == None:
return url return url