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
1 changed files with 3 additions and 1 deletions

View File

@ -43,7 +43,9 @@ def run_hook(name, *args):
results = []
f_list = hooks.get(name,[])
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
try:
r = f(*args)