diff options
author | George Hazan <george.hazan@gmail.com> | 2012-10-07 11:42:28 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-10-07 11:42:28 +0000 |
commit | 197fe77f67654cf8c46c53376190fc321176c08b (patch) | |
tree | 1a161cf7fb7968e3781b1d11771195d9b5e4c26c /src/core/stduseronline | |
parent | 4bcab3fc00696ca2daf1396bfc75bd49009644d6 (diff) |
old database macros removed from m_database.h
git-svn-id: http://svn.miranda-ng.org/main/trunk@1796 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/core/stduseronline')
-rw-r--r-- | src/core/stduseronline/useronline.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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;
|