From a5f115a6e202a07f3f2dc7ac5ece0d0ea9af4099 Mon Sep 17 00:00:00 2001 From: mathieui Date: Mon, 14 Nov 2011 00:45:15 +0100 Subject: Fix Plugin.config.get to use the right section instead of Poezio --- src/plugin.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/plugin.py b/src/plugin.py index 15f7d1cf..137f704f 100644 --- a/src/plugin.py +++ b/src/plugin.py @@ -11,6 +11,11 @@ class PluginConfig(config.Config): RawConfigParser.__init__(self, None) self.read() + def get(self, option, default, section=None): + if not section: + section = self.module_name + return config.Config.get(self, option, default, section) + def read(self): """Read the config file""" RawConfigParser.read(self, self.file_name) -- cgit v1.2.3