summaryrefslogtreecommitdiff
path: root/plugins/Ping/src/ping.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-04-05 22:27:16 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-04-05 22:27:16 +0000
commit007b4c7301f0d26a72f89f74e9929f42e24eb3e6 (patch)
treeb1ee30b70c6e36d1a06aed6885cb80dc560a68ca /plugins/Ping/src/ping.cpp
parentf4a1bbc6ba4b8137cb868639ac146aa97e97e9df (diff)
- rest of menus cleared;
- old database macroses wiped out from all plugins (left in m_database.h for compatibility) git-svn-id: http://svn.miranda-ng.org/main/trunk@4324 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Ping/src/ping.cpp')
-rw-r--r--plugins/Ping/src/ping.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Ping/src/ping.cpp b/plugins/Ping/src/ping.cpp
index 7a2ba0a188..f107f5a9d3 100644
--- a/plugins/Ping/src/ping.cpp
+++ b/plugins/Ping/src/ping.cpp
@@ -101,10 +101,10 @@ int OnModulesLoaded(WPARAM wParam, LPARAM lParam) {
hFillListEvent = HookEvent(PLUG "/ListReload", FillList);
- if(!DBGetContactSettingByte(0, PLUG, "PingPlugImport", 0)) {
- if(DBGetContactSettingDword(0, "PingPlug", "NumEntries", 0)) {
+ if(!db_get_b(0, PLUG, "PingPlugImport", 0)) {
+ if(db_get_dw(0, "PingPlug", "NumEntries", 0)) {
import_ping_addresses();
- DBWriteContactSettingByte(0, PLUG, "PingPlugImport", 1);
+ db_set_b(0, PLUG, "PingPlugImport", 1);
}
}
@@ -126,7 +126,7 @@ extern "C" __declspec(dllexport) int Load(void)
//return 1;
use_raw_ping = false;
//}
- DBWriteContactSettingByte(0, PLUG, "UsingRawSockets", (BYTE)use_raw_ping);
+ db_set_b(0, PLUG, "UsingRawSockets", (BYTE)use_raw_ping);
DuplicateHandle( GetCurrentProcess(), GetCurrentThread(), GetCurrentProcess(), &mainThread, THREAD_SET_CONTEXT, FALSE, 0 );
hWakeEvent = CreateEvent(NULL, FALSE, FALSE, _T("Local\\ThreadWaitEvent"));