don't skip already "short" urls in yourls.py - can't predict output length
This commit is contained in:
parent
11b2853832
commit
0cdd234c5c
1 changed files with 0 additions and 3 deletions
|
@ -16,9 +16,6 @@ SETTING = utils.FunctionSetting(_parse, "yourls",
|
||||||
class Module(ModuleManager.BaseModule):
|
class Module(ModuleManager.BaseModule):
|
||||||
@utils.export("shorturl-x-yourls")
|
@utils.export("shorturl-x-yourls")
|
||||||
def _shorturl(self, server, context, url):
|
def _shorturl(self, server, context, url):
|
||||||
if len(url) < 20:
|
|
||||||
return None
|
|
||||||
|
|
||||||
setting = server.get_setting("yourls",
|
setting = server.get_setting("yourls",
|
||||||
self.bot.get_setting("yourls", None))
|
self.bot.get_setting("yourls", None))
|
||||||
if context:
|
if context:
|
||||||
|
|
Loading…
Reference in a new issue