This commit is contained in:
Kevin Murphy 2004-12-29 07:01:18 +00:00
parent e867e4cab6
commit 6d2a52613b
1 changed files with 2 additions and 0 deletions

View File

@ -209,6 +209,7 @@ class ShrinkUrl(callbacks.PrivmsgCommandAndRegexp):
Returns an ln-s.net version of <url>.
"""
url = webutils.urlquote(url)
if len(url) < 17:
irc.error('Stop being a lazy-biotch and type the URL yourself.')
return
@ -240,6 +241,7 @@ class ShrinkUrl(callbacks.PrivmsgCommandAndRegexp):
Returns a TinyURL.com version of <url>
"""
url = webutils.urlquote(url)
if len(url) < 20:
irc.error('Stop being a lazy-biotch and type the URL yourself.')
return