mirror of https://github.com/Mikaela/Limnoria.git
Web: check URL whitelist in snarfer.
This commit is contained in:
parent
f305ff3c02
commit
054953891f
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue