summaryrefslogtreecommitdiff
path: root/plugins/Exchange/src/hooked_events.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/Exchange/src/hooked_events.cpp
parent488214ac8af0c4aeb1a5c1d8fd48368daaf4c4c7 (diff)
db_* functions replaced with g_plugin calls
Diffstat (limited to 'plugins/Exchange/src/hooked_events.cpp')
-rw-r--r--plugins/Exchange/src/hooked_events.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Exchange/src/hooked_events.cpp b/plugins/Exchange/src/hooked_events.cpp
index a7a9c2f4f4..42b3cedd1c 100644
--- a/plugins/Exchange/src/hooked_events.cpp
+++ b/plugins/Exchange/src/hooked_events.cpp
@@ -93,14 +93,14 @@ int UpdateTimers()
{
KillTimers();
int interval;
- interval = db_get_dw(NULL, MODULENAME, "Interval", DEFAULT_INTERVAL);
+ interval = g_plugin.getDword("Interval", DEFAULT_INTERVAL);
interval *= 1000; //go from miliseconds to seconds
hCheckTimer = SetTimer(nullptr, 0, interval, (TIMERPROC) OnCheckTimer);
- int bReconnect = db_get_b(NULL, MODULENAME, "Reconnect", 0);
+ int bReconnect = g_plugin.getByte("Reconnect", 0);
if (bReconnect) //user wants to forcefully reconnect every x minutes
{
- interval = db_get_dw(NULL, MODULENAME, "ReconnectInterval", DEFAULT_RECONNECT_INTERVAL);
+ interval = g_plugin.getDword("ReconnectInterval", DEFAULT_RECONNECT_INTERVAL);
interval *= 1000 * 60; //go from miliseconds to seconds to minutes
hReconnectTimer = SetTimer(nullptr, 0, interval, (TIMERPROC) OnReconnectTimer);
}
@@ -132,7 +132,7 @@ VOID CALLBACK OnCheckTimer(HWND, UINT, UINT_PTR, DWORD)
else{
exchangeServer.Connect();
}*/
- int bCheck = db_get_b(NULL, MODULENAME, "Check", 1);
+ int bCheck = g_plugin.getByte("Check", 1);
if (bCheck) //only check if we were told to
{