summaryrefslogtreecommitdiff
path: root/plugins/Ping/src/ping.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/Ping/src/ping.cpp
parent488214ac8af0c4aeb1a5c1d8fd48368daaf4c4c7 (diff)
db_* functions replaced with g_plugin calls
Diffstat (limited to 'plugins/Ping/src/ping.cpp')
-rw-r--r--plugins/Ping/src/ping.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Ping/src/ping.cpp b/plugins/Ping/src/ping.cpp
index da44e3ac1a..af99d9c4a9 100644
--- a/plugins/Ping/src/ping.cpp
+++ b/plugins/Ping/src/ping.cpp
@@ -89,10 +89,10 @@ static int OnModulesLoaded(WPARAM, LPARAM)
hFillListEvent = HookEvent(MODULENAME "/ListReload", FillList);
- if (!db_get_b(0, MODULENAME, "PingPlugImport", 0)) {
+ if (!g_plugin.getByte("PingPlugImport", 0)) {
if (db_get_dw(0, "PingPlug", "NumEntries", 0)) {
import_ping_addresses();
- db_set_b(0, MODULENAME, "PingPlugImport", 1);
+ g_plugin.setByte("PingPlugImport", 1);
}
}
@@ -119,7 +119,7 @@ static IconItem iconList[] =
int CMPlugin::Load()
{
use_raw_ping = false;
- db_set_b(0, MODULENAME, "UsingRawSockets", (BYTE)use_raw_ping);
+ g_plugin.setByte("UsingRawSockets", (BYTE)use_raw_ping);
hWakeEvent = CreateEvent(nullptr, FALSE, FALSE, L"Local\\ThreadWaitEvent");