commit 3211d752c72fd2a0f392788bf00dcea75f2d7a6e
parent 47e5bd653a749043ea6af3357247541e460474fd
Author: Neil Booth <kyuupichan@gmail.com>
Date: Thu, 19 Nov 2015 08:30:38 +0900
Need to set p.wallet unfortunately
Fixes #1553
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/lib/plugins.py b/lib/plugins.py
@@ -162,6 +162,8 @@ def _run_hook(name, always, *args):
results = []
f_list = hooks.get(name, [])
for p, f in f_list:
+ if name == 'load_wallet':
+ p.wallet = args[0] # For for p.is_enabled() below
if always or p.is_enabled():
try:
r = f(*args)