TinyURLs are now 24 characters in length

This commit is contained in:
James Vega 2004-01-08 23:53:08 +00:00
parent db16ba33ad
commit 1c2bdcbf3d

View File

@ -183,7 +183,7 @@ class URL(callbacks.PrivmsgCommandAndRegexp,
super(URL, self).doPrivmsg(irc, msg)
def tinyurlSnarfer(self, irc, msg, match):
r"https?://[^\])>\s]{17,}"
r"https?://[^\])>\s]{18,}"
if not ircutils.isChannel(msg.args[0]):
return
channel = msg.args[0]
@ -288,7 +288,7 @@ class URL(callbacks.PrivmsgCommandAndRegexp,
Returns a TinyURL.com version of <url>
"""
url = privmsgs.getArgs(args)
if len(url) < 23:
if len(url) < 24:
irc.error(
'Stop being a lazy-biotch and type the URL yourself.')
return