From b22ba53a6d9c32947f0c4e6cea8d19fafdf15d8c Mon Sep 17 00:00:00 2001 From: Mino Date: Sun, 6 Dec 2015 05:54:40 +0100 Subject: [PATCH] Fixed an oversight in load_preset_plugins() that was preventing !loadall in plugin_manager from working. --- python/minqlx/_core.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/minqlx/_core.py b/python/minqlx/_core.py index c1c493a..aed98f3 100644 --- a/python/minqlx/_core.py +++ b/python/minqlx/_core.py @@ -315,8 +315,7 @@ def load_preset_plugins(): plugins_dir = os.path.basename(plugins_path) if os.path.isdir(plugins_path): - # Filter out already loaded plugins. - plugins = [p for p in plugins if "{}.{}".format(plugins_dir, p) not in sys.modules] + plugins = [p for p in plugins if "{}.{}".format(plugins_dir, p)] for p in plugins: load_plugin(p) else: