From cac130e7543b30be7fbec6484b29191a9f8b1665 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Sat, 24 Sep 2011 23:44:52 +0200 Subject: Autoload plugins --- src/core.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/core.py b/src/core.py index 55026967..0b8442ff 100644 --- a/src/core.py +++ b/src/core.py @@ -174,6 +174,12 @@ class Core(object): self.xmpp.add_event_handler("chatstate_inactive", self.on_chatstate_inactive) self.timed_events = set() + self.autoload_plugins() + + def autoload_plugins(self): + plugins = config.get('plugins_autoload', '') + for plugin in plugins.split(): + self.plugin_manager.load(plugin) def coucou(self): self.command_pubsub('pubsub.louiz.org') -- cgit v1.2.3