summaryrefslogtreecommitdiff
path: root/plugins/NewsAggregator
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-06-15 17:12:00 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-06-15 17:12:00 +0000
commit083656ec0f4f0057ed0d5852f588a70077451824 (patch)
treed902cbaa9387950ba3b08916abcbe8423b16ebcc /plugins/NewsAggregator
parent1ed163aadcc0ea1baa3e6d1982efddfcf1f78ca9 (diff)
added break when we find same message
git-svn-id: http://svn.miranda-ng.org/main/trunk@4957 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewsAggregator')
-rw-r--r--plugins/NewsAggregator/Src/Utils.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/NewsAggregator/Src/Utils.cpp b/plugins/NewsAggregator/Src/Utils.cpp
index a1508e304c..9d2181df73 100644
--- a/plugins/NewsAggregator/Src/Utils.cpp
+++ b/plugins/NewsAggregator/Src/Utils.cpp
@@ -953,8 +953,10 @@ VOID CheckCurrentFeed(HANDLE hContact)
olddbei.pBlob = (PBYTE)mir_alloc(olddbei.cbBlob);
db_event_get(hDbEvent, &olddbei);
char *pszTemp = mir_utf8encodeT(message);
- if (olddbei.cbBlob == lstrlenA(pszTemp) + 1 && !lstrcmpA((char *)olddbei.pBlob, pszTemp))
+ if (olddbei.cbBlob == lstrlenA(pszTemp) + 1 && !lstrcmpA((char *)olddbei.pBlob, pszTemp)) {
MesExist = TRUE;
+ break;
+ }
hDbEvent = db_event_next(hDbEvent);
mir_free(olddbei.pBlob);
mir_free(pszTemp);