aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar Ben Harris2020-07-14 02:48:33 -0400
committerGravatar Ben Harris2020-07-14 02:48:33 -0400
commitd7e9714cecca77c543b83b8aad87db94c7c019a8 (patch)
treeed99637ae7cdc3fd8368d84851d35aea00b904bc /modules
parentrespect ~ and {DATA} in external-modules config option (diff)
signature
fix shorturl.py
this module provides a botset export but doesn't check that setting later when looking up configured shorteners check bot_settings if context and server values are not set
Diffstat (limited to 'modules')
-rw-r--r--modules/shorturl.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/shorturl.py b/modules/shorturl.py
index b387d127..345d2183 100644
--- a/modules/shorturl.py
+++ b/modules/shorturl.py
@@ -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