diff options
author | George Hazan <ghazan@miranda.im> | 2018-11-13 23:52:10 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-11-13 23:52:10 +0300 |
commit | dd2dd9a224ea7501a99e0ae4995d8f4b8ed3b5c7 (patch) | |
tree | 0c54acb21f7461e446627f156cb05ae1b5ba8f28 /plugins/NewsAggregator/Src/Update.cpp | |
parent | 453a2f5a1c3dbe0e2b87c2058a4e0ddf0c8f99c7 (diff) |
NewsAggregator -> g_plugin
Diffstat (limited to 'plugins/NewsAggregator/Src/Update.cpp')
-rw-r--r-- | plugins/NewsAggregator/Src/Update.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/NewsAggregator/Src/Update.cpp b/plugins/NewsAggregator/Src/Update.cpp index cde3ef2686..8bfe23de8c 100644 --- a/plugins/NewsAggregator/Src/Update.cpp +++ b/plugins/NewsAggregator/Src/Update.cpp @@ -31,9 +31,9 @@ void CALLBACK timerProc(HWND, UINT, UINT_PTR, DWORD) if (!ThreadRunning && !Miranda_IsTerminated()) {
bool HaveUpdates = FALSE;
for (auto &hContact : Contacts(MODULENAME)) {
- if (db_get_dw(hContact, MODULENAME, "UpdateTime", DEFAULT_UPDATE_TIME)) {
- double diff = difftime(time(0), (time_t)db_get_dw(hContact, MODULENAME, "LastCheck", 0));
- if (g_plugin.getByte("AutoUpdate", 1) != 0 && diff >= db_get_dw(hContact, MODULENAME, "UpdateTime", DEFAULT_UPDATE_TIME) * 60) {
+ if (g_plugin.getDword(hContact, "UpdateTime", DEFAULT_UPDATE_TIME)) {
+ double diff = difftime(time(0), (time_t)g_plugin.getDword(hContact, "LastCheck", 0));
+ if (g_plugin.getByte("AutoUpdate", 1) != 0 && diff >= g_plugin.getDword(hContact, "UpdateTime", DEFAULT_UPDATE_TIME) * 60) {
UpdateListAdd(hContact);
HaveUpdates = TRUE;
}
|