diff options
author | Walter Purcaro <vuolter@gmail.com> | 2015-01-09 17:31:46 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2015-01-09 17:31:46 +0100 |
commit | 7950463dbd5cc062f89a1b69bbc1464a8e0ad1b7 (patch) | |
tree | 787ff954cad0bc892f98c0f3848790c8771b8969 | |
parent | Spare fixes (diff) | |
download | pyload-7950463dbd5cc062f89a1b69bbc1464a8e0ad1b7.tar.xz |
[MultiHook] Fix auto-deactivation
-rw-r--r-- | module/plugins/internal/MultiHook.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/internal/MultiHook.py b/module/plugins/internal/MultiHook.py index 82a0a68ea..9acf3744f 100644 --- a/module/plugins/internal/MultiHook.py +++ b/module/plugins/internal/MultiHook.py @@ -9,7 +9,7 @@ from module.utils import remove_chars class MultiHook(Hook): __name__ = "MultiHook" __type__ = "hook" - __version__ = "0.30" + __version__ = "0.31" __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"), ("pluginlist" , "str" , "Plugin list (comma separated)" , "" ), @@ -82,7 +82,7 @@ class MultiHook(Hook): if self.account and not self.account.canUse(): self.account = None - if not self.account and hasattr(self.pluginclass, "LOGIN_ACCOUNT") and not self.pluginclass.LOGIN_ACCOUNT: + if not self.account and hasattr(self.pluginclass, "LOGIN_ACCOUNT") and self.pluginclass.LOGIN_ACCOUNT: self.logWarning("Hook plugin will be deactivated due missing account reference") self.setConfig('activated', False) |