summaryrefslogtreecommitdiff
path: root/plugins/SecureIM/src/crypt_lists.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-11-12 21:44:56 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-11-12 21:44:56 +0300
commit53fe3e46177d17b4941610de19f5cc6210700cb4 (patch)
treeb67a6bc208dad141f9db14035cd7e42ff2a51872 /plugins/SecureIM/src/crypt_lists.cpp
parent488214ac8af0c4aeb1a5c1d8fd48368daaf4c4c7 (diff)
db_* functions replaced with g_plugin calls
Diffstat (limited to 'plugins/SecureIM/src/crypt_lists.cpp')
-rw-r--r--plugins/SecureIM/src/crypt_lists.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/SecureIM/src/crypt_lists.cpp b/plugins/SecureIM/src/crypt_lists.cpp
index 34f9306fde..22d2ec4964 100644
--- a/plugins/SecureIM/src/crypt_lists.cpp
+++ b/plugins/SecureIM/src/crypt_lists.cpp
@@ -5,7 +5,7 @@ LIST<UinKey> arClist(100, NumericKeySortT);
void loadSupportedProtocols()
{
- LPSTR szNames = db_get_sa(0, MODULENAME, "protos");
+ LPSTR szNames = g_plugin.getStringA("protos");
if (szNames && strchr(szNames, ':') == nullptr) {
LPSTR tmp = (LPSTR)mir_alloc(2048); int j = 0;
for (int i = 0; szNames[i]; i++) {
@@ -16,7 +16,7 @@ void loadSupportedProtocols()
}
tmp[j] = '\0';
SAFE_FREE(szNames); szNames = tmp;
- db_set_s(0, MODULENAME, "protos", szNames);
+ g_plugin.setString("protos", szNames);
}
for (auto &pa : Accounts()) {