Web: check URL whitelist in snarfer.

This commit is contained in:
Valentin Lorentz 2015-08-11 14:46:47 +00:00
parent f305ff3c02
commit 054953891f
1 changed files with 2 additions and 0 deletions

View File

@ -139,6 +139,8 @@ class Web(callbacks.PluginRegexp):
return
if self.registryValue('titleSnarfer', channel):
url = match.group(0)
if not self._checkURLWhitelist(url):
return
r = self.registryValue('nonSnarfingRegexp', channel)
if r and r.search(url):
self.log.debug('Not titleSnarfing %q.', url)