From 754c5e27f878dc4a46131593e00e78e054faa995 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 1 Apr 2013 19:37:35 +0000 Subject: SecureIM: - thread cleaning; - fix SRMM status icon; - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@4278 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SecureIM/src/crypt_check.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/SecureIM/src/crypt_check.cpp') diff --git a/plugins/SecureIM/src/crypt_check.cpp b/plugins/SecureIM/src/crypt_check.cpp index 1f9bd04249..9369a1ba64 100644 --- a/plugins/SecureIM/src/crypt_check.cpp +++ b/plugins/SecureIM/src/crypt_check.cpp @@ -23,7 +23,7 @@ BYTE isContactSecured(HANDLE hContact) // нужна проверка на Offline и в этом случае другие статусы if (!arClist.getCount()) return 0; - if ( isProtoMetaContacts(hContact)) + if (isProtoMetaContacts(hContact)) hContact = getMostOnline(hContact); // возьмем тот, через который пойдет сообщение pUinKey p = findUinKey(hContact); @@ -70,7 +70,7 @@ bool isClientMiranda(pUinKey ptr, BOOL emptyMirverAsMiranda) bool isMiranda = true; LPSTR mirver = db_get_sa(ptr->hContact,ptr->proto->name,"MirVer"); if (mirver) { - isMiranda = (emptyMirverAsMiranda && !*mirver) || (strstr(mirver,"Miranda")!=NULL); + isMiranda = (emptyMirverAsMiranda && !*mirver) || (strstr(mirver,"Miranda") != NULL); mir_free(mirver); } return isMiranda; @@ -185,7 +185,7 @@ bool isChatRoom(HANDLE hContact) bool isFileExist(LPCSTR filename) { - return (GetFileAttributes(filename)!=(UINT)-1); + return (GetFileAttributes(filename) != (UINT)-1); } bool isSecureIM(pUinKey ptr, BOOL emptyMirverAsSecureIM) @@ -199,7 +199,7 @@ bool isSecureIM(pUinKey ptr, BOOL emptyMirverAsSecureIM) bool isSecureIM = false; LPSTR mirver = db_get_sa(ptr->hContact,ptr->proto->name,"MirVer"); if (mirver) { - isSecureIM = (emptyMirverAsSecureIM && !*mirver) || (strstr(mirver,"SecureIM")!=NULL) || (strstr(mirver,"secureim")!=NULL); + isSecureIM = (emptyMirverAsSecureIM && !*mirver) || (strstr(mirver,"SecureIM") != NULL) || (strstr(mirver,"secureim") != NULL); mir_free(mirver); } return isSecureIM; -- cgit v1.2.3