summaryrefslogtreecommitdiffstats
path: root/module/plugins/Hook.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/Hook.py')
-rw-r--r--module/plugins/Hook.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/module/plugins/Hook.py b/module/plugins/Hook.py
index 4a385c417..81188c147 100644
--- a/module/plugins/Hook.py
+++ b/module/plugins/Hook.py
@@ -22,22 +22,22 @@ import logging
class Hook():
+ __name__ = "Hook"
+ __version__ = "0.2"
+ __type__ = "hook"
+ __description__ = """interface for hook"""
+ __author_name__ = ("mkaay")
+ __author_mail__ = ("mkaay@mkaay.de")
+
def __init__(self, core):
self.logger = logging.getLogger("log")
self.configParser = core.parser_plugins
self.config = {}
- props = {}
- props['name'] = "Hook"
- props['version'] = "0.2"
- props['description'] = """interface for hook"""
- props['author_name'] = ("mkaay")
- props['author_mail'] = ("mkaay@mkaay.de")
- self.props = props
self.core = core
def readConfig(self):
self.configParser.loadData()
- section = self.props['name']
+ section = self.__name__
try:
self.config = self.configParser.getConfig()[section]
except: