mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-30 14:14:37 +01:00
ShrinkUrl: Remove our 'lazy biotch' message and length check.
If someone wants to specifically request that a URL, which can't possibly be made shorter using a specific service, be shrunk, we should abide their request.
This commit is contained in:
parent
de4218b26e
commit
c4de386d8f
@ -157,9 +157,6 @@ class ShrinkUrl(callbacks.PluginRegexp):
|
||||
|
||||
Returns an ln-s.net version of <url>.
|
||||
"""
|
||||
if len(url) < 17:
|
||||
irc.error('Stop being a lazy-biotch and type the URL yourself.')
|
||||
return
|
||||
try:
|
||||
lnurl = self._getLnUrl(url)
|
||||
m = irc.reply(lnurl)
|
||||
@ -187,9 +184,6 @@ class ShrinkUrl(callbacks.PluginRegexp):
|
||||
|
||||
Returns a TinyURL.com version of <url>
|
||||
"""
|
||||
if len(url) < 20:
|
||||
irc.error('Stop being a lazy-biotch and type the URL yourself.')
|
||||
return
|
||||
try:
|
||||
tinyurl = self._getTinyUrl(url)
|
||||
m = irc.reply(tinyurl)
|
||||
@ -217,9 +211,6 @@ class ShrinkUrl(callbacks.PluginRegexp):
|
||||
|
||||
Returns an xrl.us version of <url>.
|
||||
"""
|
||||
if len(url) < 17:
|
||||
irc.error('Stop being a lazy-biotch and type the URL yourself.')
|
||||
return
|
||||
try:
|
||||
xrlurl = self._getXrlUrl(url)
|
||||
m = irc.reply(xrlurl)
|
||||
@ -245,9 +236,6 @@ class ShrinkUrl(callbacks.PluginRegexp):
|
||||
|
||||
Returns an x0.no version of <url>.
|
||||
"""
|
||||
if len(url) < 17:
|
||||
irc.error('Stop being a lazy-biotch and type the URL yourself.')
|
||||
return
|
||||
try:
|
||||
x0url = self._getX0Url(url)
|
||||
m = irc.reply(x0url)
|
||||
|
Loading…
Reference in New Issue
Block a user