summaryrefslogtreecommitdiff
path: root/plugins/NewsAggregator
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2014-08-05 16:31:20 +0000
committerKirill Volinsky <mataes2007@gmail.com>2014-08-05 16:31:20 +0000
commit1292a31822229e6537a41c624bc4311e7663109b (patch)
treeca94b87041b32c38e79587350ab37b8db52ccfff /plugins/NewsAggregator
parent65b18d6e938fccdca0ca66513e7855ebbf296897 (diff)
some more fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@10077 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewsAggregator')
-rw-r--r--plugins/NewsAggregator/Src/CheckFeed.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/NewsAggregator/Src/CheckFeed.cpp b/plugins/NewsAggregator/Src/CheckFeed.cpp
index 462e8d8728..ebdb806acd 100644
--- a/plugins/NewsAggregator/Src/CheckFeed.cpp
+++ b/plugins/NewsAggregator/Src/CheckFeed.cpp
@@ -249,6 +249,8 @@ VOID CheckCurrentFeed(MCONTACT hContact)
TCHAR *string = mir_tstrdup(xi.getText(itemval));
ClearText(string);
author = mir_tstrdup(string);
+ if (1 == _stscanf(author, _T("%*s (%[^ \t\r\n)]s)"), string))
+ replaceStrT(author, string);
mir_free(string);
}
else if (!lstrcmpi(xi.getName(itemval), _T("comments"))) {
@@ -394,7 +396,7 @@ VOID CheckCurrentFeed(MCONTACT hContact)
if (!lstrcmpi(xi.getName(child), _T("author"))) {
for (int x = 0; x < xi.getChildCount(child); x++) {
HXML authorval = xi.getChild(child, x);
- if (!lstrcmpi(xi.getName(authorval), _T("name"))) {
+ if (!lstrcmpi(xi.getName(authorval), _T("email"))) {
db_set_ts(hContact, MODULE, "e-mail", xi.getText(authorval));
break;
}