adblock: Don't show message with --basedir given.

This commit is contained in:
Florian Bruhin 2015-05-17 01:09:33 +02:00
parent f54c416ddd
commit 7fc99f3d80

View File

@ -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.")