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 --- protocols/IRCG/src/options.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/IRCG/src/options.cpp') diff --git a/protocols/IRCG/src/options.cpp b/protocols/IRCG/src/options.cpp index 6fd44c60b0..0e10ae9ead 100644 --- a/protocols/IRCG/src/options.cpp +++ b/protocols/IRCG/src/options.cpp @@ -117,7 +117,7 @@ void CIrcProto::WriteSettings(TDbSetting *sets, int count) static int sttServerEnum(const char* szSetting, void*) { DBVARIANT dbv; - if (db_get_s(NULL, SERVERSMODULE, szSetting, &dbv)) + if (db_get_s(0, SERVERSMODULE, szSetting, &dbv)) return 0; SERVER_INFO *pData = new SERVER_INFO; @@ -770,7 +770,7 @@ bool CConnectPrefsDlg::OnApply() mir_snprintf(TextLine, "SERVER:SSL%u%s:%d-%dGROUP:%s", pData->m_iSSL, pData->m_address, pData->m_portStart, pData->m_portEnd, pData->m_group); else mir_snprintf(TextLine, "SERVER:%s:%d-%dGROUP:%s", pData->m_address, pData->m_portStart, pData->m_portEnd, pData->m_group); - db_set_s(NULL, SERVERSMODULE, pData->m_name, TextLine); + db_set_s(0, SERVERSMODULE, pData->m_name, TextLine); // combobox might contain new items if (g_servers.find(pData) == nullptr) @@ -1849,7 +1849,7 @@ static void sttImportIni(const wchar_t* szIniFile) memcpy(buf2, p, int(p1 - p)); buf2[int(p1 - p)] = 0; - db_set_s(NULL, SERVERSMODULE, buf2, p1); + db_set_s(0, SERVERSMODULE, buf2, p1); } fclose(serverFile); ::_wremove(szIniFile); -- cgit v1.2.3