diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-07-19 12:48:37 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-07-19 12:48:37 +0000 |
commit | 12f2352ab23dac1a624d08e8a4e022c6d6ccc981 (patch) | |
tree | 876001a391065ec4ce87590c8449fe1cb1b8ccb3 /plugins/NewsAggregator/Src/Utils.cpp | |
parent | 2c084a795884f93cbd52501e63c2ecc6fe24aa45 (diff) |
export work correct
git-svn-id: http://svn.miranda-ng.org/main/trunk@5419 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewsAggregator/Src/Utils.cpp')
-rw-r--r-- | plugins/NewsAggregator/Src/Utils.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/plugins/NewsAggregator/Src/Utils.cpp b/plugins/NewsAggregator/Src/Utils.cpp index d5baafedb5..fadaaa99fa 100644 --- a/plugins/NewsAggregator/Src/Utils.cpp +++ b/plugins/NewsAggregator/Src/Utils.cpp @@ -590,4 +590,16 @@ VOID ClearText(TCHAR *&message) }
SysFreeString(bstrHtml);
CoUninitialize();
-}
\ No newline at end of file +}
+
+HANDLE GetContactByNick(const TCHAR *nick)
+{
+ HANDLE hContact = NULL;
+
+ for (hContact = db_find_first(MODULE); hContact; hContact = db_find_next(hContact, MODULE)) {
+ ptrW contactNick(::db_get_wsa(hContact, MODULE, "Nick"));
+ if (::lstrcmpi(contactNick, nick) == 0)
+ break;
+ }
+ return hContact;
+}
|