Merge pull request #272 from benharri-forks/fix-shorturl
fix shorturl.py
This commit is contained in:
commit
c8ff426128
1 changed files with 4 additions and 2 deletions
|
@ -48,9 +48,11 @@ class Module(ModuleManager.BaseModule):
|
|||
shortener_name = None
|
||||
if context:
|
||||
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:
|
||||
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:
|
||||
return url
|
||||
|
|
Loading…
Reference in a new issue