From 12f2352ab23dac1a624d08e8a4e022c6d6ccc981 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Fri, 19 Jul 2013 12:48:37 +0000 Subject: export work correct git-svn-id: http://svn.miranda-ng.org/main/trunk@5419 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/NewsAggregator/Src/Utils.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'plugins/NewsAggregator/Src/Utils.cpp') 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; +} -- cgit v1.2.3