summaryrefslogtreecommitdiff
path: root/plugins/RemovePersonalSettings
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-04-11 12:19:07 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-04-11 12:19:07 +0300
commitdafd9a18a4b1573ff536e3db851e9e40a345c201 (patch)
tree7f6ead2892b30e109538eca380fde392240700ad /plugins/RemovePersonalSettings
parenteb37be750853ee7e21406100e90b96469d501d36 (diff)
custom references to "PluginDisable" module removed
Diffstat (limited to 'plugins/RemovePersonalSettings')
-rw-r--r--plugins/RemovePersonalSettings/src/rps.cpp8
-rw-r--r--plugins/RemovePersonalSettings/src/stdafx.h2
2 files changed, 2 insertions, 8 deletions
diff --git a/plugins/RemovePersonalSettings/src/rps.cpp b/plugins/RemovePersonalSettings/src/rps.cpp
index 62df6bf23b..1f38b1620e 100644
--- a/plugins/RemovePersonalSettings/src/rps.cpp
+++ b/plugins/RemovePersonalSettings/src/rps.cpp
@@ -547,12 +547,8 @@ void DisablePlugins()
}
// Disable it
- if (name[0] != '\0') {
- CharLowerA(name);
- if (db_get_b(0, PLUGINDISABLELIST, name, 0) != 1) {
- db_set_b(0, PLUGINDISABLELIST, name, 1);
- }
- }
+ if (name[0] != '\0')
+ SetPluginOnWhiteList(name, false);
// Get next one
name = value + mir_strlen(value) + 1;
diff --git a/plugins/RemovePersonalSettings/src/stdafx.h b/plugins/RemovePersonalSettings/src/stdafx.h
index 574cd69ad1..e2fbb81aab 100644
--- a/plugins/RemovePersonalSettings/src/stdafx.h
+++ b/plugins/RemovePersonalSettings/src/stdafx.h
@@ -38,8 +38,6 @@
#define INI_FILE_NAME "RemovePersonalSettings.ini"
-#define PLUGINDISABLELIST "PluginDisable"
-
#define METACONTACTS_PROTOCOL_NAME "MetaContacts"
#define NOTICE_TEXT LPGENW("All your personal settings will be erased!\n\