mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-10 12:59:22 +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>.
|
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:
|
try:
|
||||||
lnurl = self._getLnUrl(url)
|
lnurl = self._getLnUrl(url)
|
||||||
m = irc.reply(lnurl)
|
m = irc.reply(lnurl)
|
||||||
@ -187,9 +184,6 @@ class ShrinkUrl(callbacks.PluginRegexp):
|
|||||||
|
|
||||||
Returns a TinyURL.com version of <url>
|
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:
|
try:
|
||||||
tinyurl = self._getTinyUrl(url)
|
tinyurl = self._getTinyUrl(url)
|
||||||
m = irc.reply(tinyurl)
|
m = irc.reply(tinyurl)
|
||||||
@ -217,9 +211,6 @@ class ShrinkUrl(callbacks.PluginRegexp):
|
|||||||
|
|
||||||
Returns an xrl.us version of <url>.
|
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:
|
try:
|
||||||
xrlurl = self._getXrlUrl(url)
|
xrlurl = self._getXrlUrl(url)
|
||||||
m = irc.reply(xrlurl)
|
m = irc.reply(xrlurl)
|
||||||
@ -245,9 +236,6 @@ class ShrinkUrl(callbacks.PluginRegexp):
|
|||||||
|
|
||||||
Returns an x0.no version of <url>.
|
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:
|
try:
|
||||||
x0url = self._getX0Url(url)
|
x0url = self._getX0Url(url)
|
||||||
m = irc.reply(x0url)
|
m = irc.reply(x0url)
|
||||||
|
Loading…
Reference in New Issue
Block a user