summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-04-15 15:05:15 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-04-15 15:05:15 +0300
commit70c6c50d70b2e27929907c0f18e981a03e68f270 (patch)
tree9e44c9b7ee1a01eb73446f818bf86a14a7e07c4d /src
parent10a5060d3acf51dcd99b81f957a52d9af48b1f48 (diff)
fixes #1268 (even if a service mode plugin is disabled in the Options, it still remains loaded)
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/newplugins.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mir_app/src/newplugins.cpp b/src/mir_app/src/newplugins.cpp
index a0769d2b19..1771bb117f 100644
--- a/src/mir_app/src/newplugins.cpp
+++ b/src/mir_app/src/newplugins.cpp
@@ -834,6 +834,10 @@ int LoadNewPluginsModule(void)
}
}
+ for (auto &it : servicePlugins.rev_iter())
+ if (!isPluginOnWhiteList(it->pluginname))
+ Plugin_Uninit(it);
+
HookEvent(ME_OPT_INITIALISE, PluginOptionsInit);
return 0;
}