From 197fe77f67654cf8c46c53376190fc321176c08b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 7 Oct 2012 11:42:28 +0000 Subject: old database macros removed from m_database.h git-svn-id: http://svn.miranda-ng.org/main/trunk@1796 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/core/stduseronline/useronline.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/core/stduseronline') diff --git a/src/core/stduseronline/useronline.cpp b/src/core/stduseronline/useronline.cpp index e4c2b9b258..b37138d0bc 100644 --- a/src/core/stduseronline/useronline.cpp +++ b/src/core/stduseronline/useronline.cpp @@ -52,7 +52,7 @@ static int UserOnlineSettingChanged(WPARAM wParam, LPARAM lParam) if ((newStatus == ID_STATUS_ONLINE || newStatus == ID_STATUS_FREECHAT) && oldStatus != ID_STATUS_ONLINE && oldStatus != ID_STATUS_FREECHAT) { { - DWORD ticked = db_dword_get(NULL, "UserOnline", cws->szModule, GetTickCount()); + DWORD ticked = db_get_dw(NULL, "UserOnline", cws->szModule, GetTickCount()); // only play the sound (or show event) if this event happens at least 10 secs after the proto went from offline if (GetTickCount() - ticked > (1000*10)) { CLISTEVENT cle; @@ -82,7 +82,7 @@ static int UserOnlineAck(WPARAM, LPARAM lParam) ACKDATA * ack = (ACKDATA*) lParam; if (ack != 0 && ack->szModule && ack->type == ACKTYPE_STATUS && ack->result == ACKRESULT_SUCCESS && ack->hProcess == (HANDLE)ID_STATUS_OFFLINE) { // if going from offline to any other mode, remember when it happened. - db_dword_set(NULL, "UserOnline", ack->szModule, GetTickCount()); + db_set_dw(NULL, "UserOnline", ack->szModule, GetTickCount()); } return 0; } @@ -96,7 +96,7 @@ static int UserOnlineModulesLoaded(WPARAM, LPARAM) // reset the counter for (int i = 0; i < numAccounts; i++) if (Proto_IsAccountEnabled(accounts[i])) - db_dword_set(NULL, "UserOnline", accounts[i]->szModuleName, GetTickCount()); + db_set_dw(NULL, "UserOnline", accounts[i]->szModuleName, GetTickCount()); return 0; } @@ -110,7 +110,7 @@ static int UserOnlineAccountsChanged(WPARAM eventCode, LPARAM lParam) case PRAC_CHECKED: // reset the counter if (Proto_IsAccountEnabled(pa)) - db_dword_set(NULL, "UserOnline", pa->szModuleName, GetTickCount()); + db_set_dw(NULL, "UserOnline", pa->szModuleName, GetTickCount()); break; } return 0; -- cgit v1.2.3