From 46d16791cc4f3acd4424667146fcd85ae542f08d Mon Sep 17 00:00:00 2001 From: mkaay Date: Tue, 14 Sep 2010 18:13:37 +0200 Subject: missing file, again.. --- module/PluginManager.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'module/PluginManager.py') diff --git a/module/PluginManager.py b/module/PluginManager.py index 19dd5886f..85504ed24 100644 --- a/module/PluginManager.py +++ b/module/PluginManager.py @@ -169,7 +169,11 @@ class PluginManager(): config = self.reConfig.findall(content) if config: - config = [ [y.strip() for y in x.replace("'","").replace('"',"").replace(")","").split(",")] for x in config[0].split("(") if x.strip()] + config = literal_eval(config[0].strip().replace("\n", "").replace("\r", "")) + if type(config[0]) == tuple: + config = [list(x) for x in config] + else: + config = [list(config)] if folder == "hooks": config.append( ["load", "bool", "Load on startup", True if name not in ("XMPPInterface", "MultiHome") else False] ) -- cgit v1.2.3