summaryrefslogtreecommitdiff
path: root/protocols/IRCG/src/options.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 /protocols/IRCG/src/options.cpp
parent488214ac8af0c4aeb1a5c1d8fd48368daaf4c4c7 (diff)
db_* functions replaced with g_plugin calls
Diffstat (limited to 'protocols/IRCG/src/options.cpp')
-rw-r--r--protocols/IRCG/src/options.cpp6
1 files changed, 3 insertions, 3 deletions
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);