adblock: Don't show message with --basedir given.
This commit is contained in:
parent
f54c416ddd
commit
7fc99f3d80
@ -110,7 +110,9 @@ class HostBlocker:
|
|||||||
except OSError:
|
except OSError:
|
||||||
log.misc.exception("Failed to read host blocklist!")
|
log.misc.exception("Failed to read host blocklist!")
|
||||||
else:
|
else:
|
||||||
if config.get('content', 'host-block-lists') is not None:
|
args = objreg.get('args')
|
||||||
|
if (config.get('content', 'host-block-lists') is not None and
|
||||||
|
args.basedir is None):
|
||||||
message.info('current',
|
message.info('current',
|
||||||
"Run :adblock-update to get adblock lists.")
|
"Run :adblock-update to get adblock lists.")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user