summaryrefslogtreecommitdiff
path: root/plugins/New_GPG/src/init.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-12-08 20:12:16 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-12-08 20:12:26 +0300
commit8ffc77be71507825a8f7585bcabff8ccc370206a (patch)
treeaa13a8070f31286db6ad22e17a577e547942f951 /plugins/New_GPG/src/init.cpp
parent41b2fdfc654e3eec07c97ceba00cda13d988ffff (diff)
db_get_sa / db_get_wsa to receive the default value, massive code simplification
Diffstat (limited to 'plugins/New_GPG/src/init.cpp')
-rwxr-xr-xplugins/New_GPG/src/init.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/New_GPG/src/init.cpp b/plugins/New_GPG/src/init.cpp
index 8b074c96e7..5bf008296d 100755
--- a/plugins/New_GPG/src/init.cpp
+++ b/plugins/New_GPG/src/init.cpp
@@ -72,14 +72,14 @@ void init_vars()
{
globals.bAppendTags = g_plugin.getByte("bAppendTags", 0) != 0;
globals.bStripTags = g_plugin.getByte("bStripTags", 0) != 0;
- globals.inopentag = UniGetContactSettingUtf(0, MODULENAME, "szInOpenTag", L"<GPGdec>");
- globals.inclosetag = UniGetContactSettingUtf(0, MODULENAME, "szInCloseTag", L"</GPGdec>");
- globals.outopentag = UniGetContactSettingUtf(0, MODULENAME, "szOutOpenTag", L"<GPGenc>");
- globals.outclosetag = UniGetContactSettingUtf(0, MODULENAME, "szOutCloseTag", L"</GPGenc>");
+ globals.inopentag = db_get_wsa(0, MODULENAME, "szInOpenTag", L"<GPGdec>");
+ globals.inclosetag = db_get_wsa(0, MODULENAME, "szInCloseTag", L"</GPGdec>");
+ globals.outopentag = db_get_wsa(0, MODULENAME, "szOutOpenTag", L"<GPGenc>");
+ globals.outclosetag = db_get_wsa(0, MODULENAME, "szOutCloseTag", L"</GPGenc>");
globals.bDebugLog = g_plugin.getByte("bDebugLog", 0) != 0;
globals.bAutoExchange = g_plugin.getByte("bAutoExchange", 0) != 0;
globals.bSameAction = g_plugin.getByte("bSameAction", 0) != 0;
- globals.password = UniGetContactSettingUtf(0, MODULENAME, "szKeyPassword", L"");
+ globals.password = db_get_wsa(0, MODULENAME, "szKeyPassword", L"");
globals.debuglog.init();
globals.bJabberAPI = g_plugin.getByte("bJabberAPI", true) != 0;
globals.bPresenceSigning = g_plugin.getByte("bPresenceSigning", 0) != 0;