mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
TinyURLs are now 24 characters in length
This commit is contained in:
parent
db16ba33ad
commit
1c2bdcbf3d
@ -183,7 +183,7 @@ class URL(callbacks.PrivmsgCommandAndRegexp,
|
|||||||
super(URL, self).doPrivmsg(irc, msg)
|
super(URL, self).doPrivmsg(irc, msg)
|
||||||
|
|
||||||
def tinyurlSnarfer(self, irc, msg, match):
|
def tinyurlSnarfer(self, irc, msg, match):
|
||||||
r"https?://[^\])>\s]{17,}"
|
r"https?://[^\])>\s]{18,}"
|
||||||
if not ircutils.isChannel(msg.args[0]):
|
if not ircutils.isChannel(msg.args[0]):
|
||||||
return
|
return
|
||||||
channel = msg.args[0]
|
channel = msg.args[0]
|
||||||
@ -288,7 +288,7 @@ class URL(callbacks.PrivmsgCommandAndRegexp,
|
|||||||
Returns a TinyURL.com version of <url>
|
Returns a TinyURL.com version of <url>
|
||||||
"""
|
"""
|
||||||
url = privmsgs.getArgs(args)
|
url = privmsgs.getArgs(args)
|
||||||
if len(url) < 23:
|
if len(url) < 24:
|
||||||
irc.error(
|
irc.error(
|
||||||
'Stop being a lazy-biotch and type the URL yourself.')
|
'Stop being a lazy-biotch and type the URL yourself.')
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user