mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-02 15:44:06 +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>.
|
||||
"""
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user