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

View File

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