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:
James Vega 2009-10-08 23:14:42 -04:00
parent de4218b26e
commit c4de386d8f

View File

@ -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)