diff options
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/IcqOscarJ/src/icq_proto.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/protocols/IcqOscarJ/src/icq_proto.cpp b/protocols/IcqOscarJ/src/icq_proto.cpp index db08fe771c..e122c1f845 100644 --- a/protocols/IcqOscarJ/src/icq_proto.cpp +++ b/protocols/IcqOscarJ/src/icq_proto.cpp @@ -838,15 +838,11 @@ HANDLE __cdecl CIcqProto::SearchBasic(const PROTOCHAR *pszSearch) HANDLE __cdecl CIcqProto::SearchByEmail(const PROTOCHAR *email)
{
if (email && icqOnline() && strlennull(email) > 0) {
- DWORD dwSearchId, dwSecId;
char *szEmail = tchar_to_ansi(email);
// Success
- dwSearchId = SearchByMail(szEmail);
- if (m_bAimEnabled)
- dwSecId = icq_searchAimByEmail(szEmail, dwSearchId);
- else
- dwSecId = 0;
+ DWORD dwSearchId = SearchByMail(szEmail);
+ DWORD dwSecId = (dwSearchId == 0 && m_bAimEnabled) ? icq_searchAimByEmail(szEmail, dwSearchId) : 0;
SAFE_FREE(&szEmail);
|