From 53fe3e46177d17b4941610de19f5cc6210700cb4 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 12 Nov 2018 21:44:56 +0300 Subject: db_* functions replaced with g_plugin calls --- plugins/SecureIM/src/crypt_lists.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/SecureIM/src/crypt_lists.cpp') 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 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()) { -- cgit v1.2.3