summaryrefslogtreecommitdiff
path: root/plugins/SecureIM/src/crypt_check.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-04-01 19:37:35 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-04-01 19:37:35 +0000
commit754c5e27f878dc4a46131593e00e78e054faa995 (patch)
treee49b137bf04d56c58c50f5fb1760a6cf84bca658 /plugins/SecureIM/src/crypt_check.cpp
parent14ad5bd238bb3fb2edf8284a1c35f175e2f31d5f (diff)
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
Diffstat (limited to 'plugins/SecureIM/src/crypt_check.cpp')
-rw-r--r--plugins/SecureIM/src/crypt_check.cpp8
1 files changed, 4 insertions, 4 deletions
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;