mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Failed regexp now handled in googlegroups.
This commit is contained in:
parent
c5e1e8e89a
commit
663a9f75ae
@ -185,6 +185,8 @@ class GooglePrivmsgRegexp(callbacks.PrivmsgRegexp):
|
||||
fd.close()
|
||||
if match.group(0).find('&prev=/') >= 0:
|
||||
path = re.search('view the <a href=([^>]+)>no',text)
|
||||
if path is None:
|
||||
return
|
||||
url = 'http://groups.google.com'
|
||||
request = urllib2.Request('%s%s' % (url,path.group(1)),
|
||||
headers={'User-agent': 'Mozilla/4.0 (compatible; MSIE 5.5;'
|
||||
|
Loading…
Reference in New Issue
Block a user