mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Moved the ln-s urlquote to a more appropriate place, and removed it for tinyurl as it actually made tiny not work
This commit is contained in:
parent
1f8ed8ebe7
commit
ea5bc4d5ca
@ -192,6 +192,7 @@ class ShrinkUrl(callbacks.PrivmsgCommandAndRegexp):
|
|||||||
shrinkSnarfer = urlSnarfer(shrinkSnarfer)
|
shrinkSnarfer = urlSnarfer(shrinkSnarfer)
|
||||||
|
|
||||||
def _getLnUrl(self, url):
|
def _getLnUrl(self, url):
|
||||||
|
url = webutils.urlquote(url)
|
||||||
try:
|
try:
|
||||||
return (self.db.getLn(url), '200')
|
return (self.db.getLn(url), '200')
|
||||||
except KeyError:
|
except KeyError:
|
||||||
@ -209,7 +210,6 @@ 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
|
||||||
@ -241,7 +241,6 @@ 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