mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-09 02:54:13 +01:00
Fix for bug #1088549
This commit is contained in:
parent
e867e4cab6
commit
6d2a52613b
@ -209,6 +209,7 @@ class ShrinkUrl(callbacks.PrivmsgCommandAndRegexp):
|
|||||||
|
|
||||||
Returns an ln-s.net version of <url>.
|
Returns an ln-s.net version of <url>.
|
||||||
"""
|
"""
|
||||||
|
url = webutils.urlquote(url)
|
||||||
if len(url) < 17:
|
if len(url) < 17:
|
||||||
irc.error('Stop being a lazy-biotch and type the URL yourself.')
|
irc.error('Stop being a lazy-biotch and type the URL yourself.')
|
||||||
return
|
return
|
||||||
@ -240,6 +241,7 @@ class ShrinkUrl(callbacks.PrivmsgCommandAndRegexp):
|
|||||||
|
|
||||||
Returns a TinyURL.com version of <url>
|
Returns a TinyURL.com version of <url>
|
||||||
"""
|
"""
|
||||||
|
url = webutils.urlquote(url)
|
||||||
if len(url) < 20:
|
if len(url) < 20:
|
||||||
irc.error('Stop being a lazy-biotch and type the URL yourself.')
|
irc.error('Stop being a lazy-biotch and type the URL yourself.')
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user