From 6e728e74da0f6e4fc4d4a60430dadc82865b1161 Mon Sep 17 00:00:00 2001 From: James Vega Date: Fri, 17 Oct 2003 14:26:33 +0000 Subject: [PATCH] Improve the snarfer re so that index.php is not required --- plugins/Sourceforge.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Sourceforge.py b/plugins/Sourceforge.py index 2e6acc926..96c91bb17 100644 --- a/plugins/Sourceforge.py +++ b/plugins/Sourceforge.py @@ -216,7 +216,7 @@ class Sourceforge(callbacks.PrivmsgCommandAndRegexp): _sfTitle = re.compile(r'Detail:(\d+) - ([^<]+)', re.I) _linkType = re.compile(r'(\w+ \w+|\w+): Tracker Detailed View', re.I) def sourceforgeSnarfer(self, irc, msg, match): - r"https?://(?:www\.)?sourceforge\.net/tracker/index\.php\?func=detail&aid=\d+&group_id=\d+&atid=\d+" + r"https?://(?:www\.)?sourceforge\.net/tracker/(?:index\.php)?\?func=detail&aid=\d+&group_id=\d+&atid=\d+" url = match.group(0) fd = urllib2.urlopen(url) s = fd.read()