load_wallet: we still want to test is_enabled

This commit is contained in:
ThomasV 2014-09-10 23:15:55 +02:00
parent a7102bee78
commit c2813c5b15

View file

@ -43,7 +43,9 @@ def run_hook(name, *args):
results = [] results = []
f_list = hooks.get(name,[]) f_list = hooks.get(name,[])
for p, f in f_list: for p, f in f_list:
if name != 'load_wallet' and not p.is_enabled(): if name == 'load_wallet':
p.wallet = args[0]
if not p.is_enabled():
continue continue
try: try:
r = f(*args) r = f(*args)