From 083656ec0f4f0057ed0d5852f588a70077451824 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 15 Jun 2013 17:12:00 +0000 Subject: added break when we find same message git-svn-id: http://svn.miranda-ng.org/main/trunk@4957 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/NewsAggregator/Src/Utils.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3