summaryrefslogtreecommitdiff
path: root/protocols/IcqOscarJ
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 /protocols/IcqOscarJ
parent488214ac8af0c4aeb1a5c1d8fd48368daaf4c4c7 (diff)
db_* functions replaced with g_plugin calls
Diffstat (limited to 'protocols/IcqOscarJ')
-rw-r--r--protocols/IcqOscarJ/src/fam_01service.cpp2
-rw-r--r--protocols/IcqOscarJ/src/icq_servlist.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/protocols/IcqOscarJ/src/fam_01service.cpp b/protocols/IcqOscarJ/src/fam_01service.cpp
index 01c917c998..e9a1048e8a 100644
--- a/protocols/IcqOscarJ/src/fam_01service.cpp
+++ b/protocols/IcqOscarJ/src/fam_01service.cpp
@@ -597,7 +597,7 @@ void CIcqProto::setUserInfo()
//MIM/PackName
bool bHasPackName = false;
DBVARIANT dbv;
- if (!db_get_s(NULL, "ICQCaps", "PackName", &dbv)) {
+ if (!db_get_s(0, "ICQCaps", "PackName", &dbv)) {
//MIM/PackName
bHasPackName = true;
wAdditionalData += 16;
diff --git a/protocols/IcqOscarJ/src/icq_servlist.cpp b/protocols/IcqOscarJ/src/icq_servlist.cpp
index 14a64f5bc3..62f45998ee 100644
--- a/protocols/IcqOscarJ/src/icq_servlist.cpp
+++ b/protocols/IcqOscarJ/src/icq_servlist.cpp
@@ -1242,7 +1242,7 @@ void* CIcqProto::collectGroups(int *count)
static int GroupLinksEnumProc(const char *szSetting, void *lParam)
{
// check link target, add if match
- if (db_get_w(NULL, ((char**)lParam)[2], szSetting, 0) == (WORD)((char**)lParam)[1]) {
+ if (db_get_w(0, ((char**)lParam)[2], szSetting, 0) == (WORD)((char**)lParam)[1]) {
char** block = (char**)SAFE_MALLOC(2 * sizeof(char*));
block[1] = null_strdup(szSetting);
block[0] = ((char**)lParam)[0];
@@ -1325,7 +1325,7 @@ WORD CIcqProto::getServListGroupLinkID(const char *szPath)
char szModule[MAX_PATH];
mir_snprintf(szModule, "%sGroups", m_szModuleName);
- WORD wGroupId = db_get_w(NULL, szModule, szPath, 0);
+ WORD wGroupId = db_get_w(0, szModule, szPath, 0);
if (wGroupId && !CheckServerID(wGroupId, 0)) { // known, check if still valid, if not remove
debugLogA("Removing group \"%s\" from cache...", szPath);
@@ -1342,7 +1342,7 @@ void CIcqProto::setServListGroupLinkID(const char *szPath, WORD wGroupID)
mir_snprintf(szModule, "%sGroups", m_szModuleName);
if (wGroupID)
- db_set_w(NULL, szModule, szPath, wGroupID);
+ db_set_w(0, szModule, szPath, wGroupID);
else
db_unset(NULL, szModule, szPath);
}