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/Ping/src/ping.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/Ping/src/ping.cpp') 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"); -- cgit v1.2.3