summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--module/plugins/internal/Account.py4
-rw-r--r--module/plugins/internal/misc.py6
2 files changed, 6 insertions, 4 deletions
diff --git a/module/plugins/internal/Account.py b/module/plugins/internal/Account.py
index fa3427aac..184926a47 100644
--- a/module/plugins/internal/Account.py
+++ b/module/plugins/internal/Account.py
@@ -12,7 +12,7 @@ from module.plugins.internal.misc import Periodical, compare_time, decode, isite
class Account(Plugin):
__name__ = "Account"
__type__ = "account"
- __version__ = "0.70"
+ __version__ = "0.71"
__status__ = "stable"
__description__ = """Base account plugin"""
@@ -329,6 +329,8 @@ class Account(Plugin):
else:
self.add(user, password, options)
+ return True
+
@lock
def removeAccount(self, user):
diff --git a/module/plugins/internal/misc.py b/module/plugins/internal/misc.py
index b5046e962..c449070e0 100644
--- a/module/plugins/internal/misc.py
+++ b/module/plugins/internal/misc.py
@@ -38,7 +38,7 @@ except ImportError:
class misc(object):
__name__ = "misc"
__type__ = "plugin"
- __version__ = "0.23"
+ __version__ = "0.24"
__status__ = "stable"
__pattern__ = r'^unmatchable$'
@@ -220,10 +220,10 @@ class SimpleQueue(object):
def lock(fn):
- def new(*args):
+ def new(*args, **kwargs):
args[0].lock.acquire()
try:
- return fn(*args)
+ return fn(*args, **kwargs)
finally:
args[0].lock.release()