summaryrefslogtreecommitdiffstats
path: root/pinolo/plugins/quotes2.py
diff options
context:
space:
mode:
Diffstat (limited to 'pinolo/plugins/quotes2.py')
-rw-r--r--pinolo/plugins/quotes2.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/pinolo/plugins/quotes2.py b/pinolo/plugins/quotes2.py
index e53b6e2..1f10734 100644
--- a/pinolo/plugins/quotes2.py
+++ b/pinolo/plugins/quotes2.py
@@ -60,9 +60,10 @@ class QuotesPlugin(Plugin):
's': 'search',
}
- def __init__(self, bot):
- super(QuotesPlugin, self).__init__(bot)
- self.db_path = os.path.join(self.bot.config['datadir'], "whoosh")
+ def __init__(self, bot, config, enabled=True):
+ super(QuotesPlugin, self).__init__(bot, config, enabled)
+ self.db_path = os.path.join(self.config.get("@root.datadir"),
+ "whoosh")
self.to_be_indexed = False
self.init_whoosh()