summaryrefslogtreecommitdiff
path: root/plugins/NewsAggregator/Src/Services.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-01-08 18:10:01 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-01-08 18:10:01 +0000
commit82ee92ab91e97f986ebafbee993bf20ff39bde12 (patch)
tree3353f33b8ba5f83d6e871856f1ddb4b8849fda17 /plugins/NewsAggregator/Src/Services.cpp
parent3a2d344affe7ba8fee7bf97f90d402c1580b82a5 (diff)
fixed checking news manually
git-svn-id: http://svn.miranda-ng.org/main/trunk@3021 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewsAggregator/Src/Services.cpp')
-rw-r--r--plugins/NewsAggregator/Src/Services.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/NewsAggregator/Src/Services.cpp b/plugins/NewsAggregator/Src/Services.cpp
index c16222014a..21705031da 100644
--- a/plugins/NewsAggregator/Src/Services.cpp
+++ b/plugins/NewsAggregator/Src/Services.cpp
@@ -228,11 +228,11 @@ INT_PTR NewsAggrGetAvatarInfo(WPARAM wParam, LPARAM lParam)
// otherwise, cached avatar is used
if (wParam & GAIF_FORCE && DBGetContactSettingDword(pai->hContact, MODULE, "UpdateTime", 60))
UpdateListAdd(pai->hContact);
- if (!ThreadRunning)
+ if (db_get_b(NULL, MODULE, "AutoUpdate", 1) != 0 && !ThreadRunning)
mir_forkthread(UpdateThreadProc, NULL);
DBVARIANT dbv = {0};
- if(DBGetContactSettingTString(pai->hContact,MODULE,"ImageURL",&dbv))
+ if(DBGetContactSettingTString(pai->hContact, MODULE, "ImageURL", &dbv))
{
return GAIR_NOAVATAR;
}