This commit is contained in:
Jeremy Fincher 2004-08-20 06:52:45 +00:00
parent 5c30fe221c
commit 852e1dcb56

View File

@ -378,25 +378,22 @@ class Google(callbacks.PrivmsgCommandAndRegexp):
r"http://groups.google.com/[^\s]+" r"http://groups.google.com/[^\s]+"
if not self.registryValue('groupsSnarfer', msg.args[0]): if not self.registryValue('groupsSnarfer', msg.args[0]):
return return
text = webutils.getUrl(match.group(0)) url = match.group(0)
text = webutils.getUrl(url)
mThread = None mThread = None
mGroup = None mGroup = None
if 'threadm=' in m: if 'threadm=' in url:
path = self._ggThreadm.search(text) path = self._ggThreadm.search(text)
if path is None: if path is None:
return return
url = 'http://groups.google.com%s' % path.group(1) url = 'http://groups.google.com%s' % path.group(1)
request = webutils.Request(url, headers=header) text = webutils.getUrl(url)
text = webutils.getUrl(request) elif 'selm=' in url:
elif 'selm=' in m: path = self._ggSelm.search(url)
path = self._ggSelm.search(m) if path is None:
if m is None:
return return
url = 'http://groups.google.com/groups?%s' % path.group(0) url = 'http://groups.google.com/groups?%s' % path.group(0)
request = webutils.Request(url, headers=header) text = webutils.getUrl(url)
text = webutils.getUrl(request)
else:
pass
mThread = self._ggThread.search(text) mThread = self._ggThread.search(text)
mGroup = self._ggGroup.search(text) mGroup = self._ggGroup.search(text)
if mThread and mGroup: if mThread and mGroup: