From 62caf6ac52b6adcec29fc33f5371aa9cf250e722 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Wed, 25 Nov 2009 23:58:52 +0100 Subject: Fixed title regex. --- modules/url_titles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/url_titles.py b/modules/url_titles.py index fe5181c..fbca0d9 100644 --- a/modules/url_titles.py +++ b/modules/url_titles.py @@ -8,7 +8,7 @@ import re, urllib2, htmlentitydefs, gzip, cStringIO, spotimeta class Module: re_http = re.compile(r'(http://[^\ ]+)') - re_title = re.compile(r'(.*?)', re.S | re.I) + re_title = re.compile(r']+?>(.*?)', re.S | re.I) metadata = spotimeta.Metadata(cache = {}) def __init__(self, bot): -- cgit v1.2.3